2017-06-23 21:00:42 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
front:
|
2018-01-08 21:47:14 +00:00
|
|
|
build: front
|
2017-06-23 21:00:42 +00:00
|
|
|
env_file: .env.dev
|
|
|
|
environment:
|
|
|
|
- "HOST=0.0.0.0"
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- './front:/app'
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
env_file: .env.dev
|
|
|
|
image: postgres
|
|
|
|
|
|
|
|
redis:
|
|
|
|
env_file: .env.dev
|
|
|
|
image: redis:3.0
|
|
|
|
|
|
|
|
celeryworker:
|
|
|
|
env_file: .env.dev
|
|
|
|
build:
|
|
|
|
context: ./api
|
2017-06-29 21:26:57 +00:00
|
|
|
dockerfile: docker/Dockerfile.test
|
2017-06-23 21:00:42 +00:00
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2017-12-27 19:29:26 +00:00
|
|
|
command: celery -A funkwhale_api.taskapp worker -l debug
|
2017-06-23 21:00:42 +00:00
|
|
|
environment:
|
2017-12-13 22:36:10 +00:00
|
|
|
- "DJANGO_ALLOWED_HOSTS=localhost"
|
|
|
|
- "DJANGO_SETTINGS_MODULE=config.settings.local"
|
|
|
|
- "DJANGO_SECRET_KEY=dev"
|
|
|
|
- C_FORCE_ROOT=true
|
|
|
|
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
|
|
|
|
- "CACHE_URL=redis://redis:6379/0"
|
2018-03-01 23:14:55 +00:00
|
|
|
- "FUNKWHALE_URL=http://funkwhale.test"
|
2017-06-23 21:00:42 +00:00
|
|
|
volumes:
|
|
|
|
- ./api:/app
|
2017-06-26 16:10:38 +00:00
|
|
|
- ./data/music:/music
|
2017-06-23 21:00:42 +00:00
|
|
|
api:
|
|
|
|
env_file: .env.dev
|
|
|
|
build:
|
|
|
|
context: ./api
|
2017-06-26 16:10:38 +00:00
|
|
|
dockerfile: docker/Dockerfile.test
|
2017-06-23 21:00:42 +00:00
|
|
|
command: python /app/manage.py runserver 0.0.0.0:12081
|
|
|
|
volumes:
|
|
|
|
- ./api:/app
|
2017-06-26 16:10:38 +00:00
|
|
|
- ./data/music:/music
|
2017-07-17 20:00:32 +00:00
|
|
|
environment:
|
2018-02-18 13:29:35 +00:00
|
|
|
- "DJANGO_ALLOWED_HOSTS=localhost,nginx"
|
2017-12-13 22:36:10 +00:00
|
|
|
- "DJANGO_SETTINGS_MODULE=config.settings.local"
|
|
|
|
- "DJANGO_SECRET_KEY=dev"
|
2017-07-17 20:00:32 +00:00
|
|
|
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
|
|
|
|
- "CACHE_URL=redis://redis:6379/0"
|
2018-03-01 23:14:55 +00:00
|
|
|
- "FUNKWHALE_URL=http://funkwhale.test"
|
2017-06-23 21:00:42 +00:00
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
|
2017-06-28 21:30:26 +00:00
|
|
|
nginx:
|
|
|
|
env_file: .env.dev
|
|
|
|
image: nginx
|
|
|
|
links:
|
|
|
|
- api
|
|
|
|
- front
|
|
|
|
volumes:
|
|
|
|
- ./docker/nginx/conf.dev:/etc/nginx/nginx.conf
|
|
|
|
- ./api/funkwhale_api/media:/protected/media
|
|
|
|
ports:
|
2017-07-11 07:14:54 +00:00
|
|
|
- "0.0.0.0:6001:6001"
|
2018-03-12 22:38:39 +00:00
|
|
|
|
|
|
|
docs:
|
|
|
|
build: docs
|
|
|
|
command: python serve.py
|
|
|
|
volumes:
|
|
|
|
- ".:/app/"
|
|
|
|
ports:
|
|
|
|
- '35730:35730'
|
|
|
|
- '8001:8001'
|