2017-06-23 21:00:42 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
front:
|
|
|
|
build:
|
|
|
|
dockerfile: docker/Dockerfile.dev
|
|
|
|
context: ./front
|
|
|
|
env_file: .env.dev
|
|
|
|
environment:
|
|
|
|
- "HOST=0.0.0.0"
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- './front:/app'
|
|
|
|
- /app/node_modules
|
|
|
|
|
|
|
|
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
|
|
|
|
command: python manage.py celery worker
|
|
|
|
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"
|
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:
|
2017-12-13 22:36:10 +00:00
|
|
|
- "DJANGO_ALLOWED_HOSTS=localhost"
|
|
|
|
- "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"
|
2017-06-23 21:00:42 +00:00
|
|
|
ports:
|
2017-06-26 16:10:38 +00:00
|
|
|
- "12081:12081"
|
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"
|