2017-06-25 21:02:36 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file: .env
|
|
|
|
image: postgres:9.4
|
2017-06-28 18:41:25 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
2017-06-25 21:02:36 +00:00
|
|
|
|
|
|
|
redis:
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file: .env
|
|
|
|
image: redis:3
|
|
|
|
volumes:
|
2017-06-28 18:41:25 +00:00
|
|
|
- ./data/redis:/data
|
2017-06-25 21:02:36 +00:00
|
|
|
|
|
|
|
celeryworker:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
|
|
|
|
env_file: .env
|
|
|
|
command: python manage.py celery worker
|
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- C_FORCE_ROOT=true
|
|
|
|
volumes:
|
2017-06-25 21:33:19 +00:00
|
|
|
- ./data/music:/music:ro
|
2017-07-10 21:43:14 +00:00
|
|
|
- ./data/media:/app/funkwhale_api/media
|
2017-06-25 21:02:36 +00:00
|
|
|
|
|
|
|
celerybeat:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
|
|
|
|
env_file: .env
|
|
|
|
command: celery -A funkwhale_api.taskapp beat -l INFO
|
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
|
|
|
|
api:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
|
|
|
|
env_file: .env
|
|
|
|
command: ./compose/django/gunicorn.sh
|
|
|
|
volumes:
|
2017-06-25 21:33:19 +00:00
|
|
|
- ./data/music:/music:ro
|
2017-06-25 21:02:36 +00:00
|
|
|
- ./data/media:/app/funkwhale_api/media
|
|
|
|
- ./data/static:/app/staticfiles
|
2017-06-28 18:30:52 +00:00
|
|
|
- ./front/dist:/frontend
|
2017-06-25 21:02:36 +00:00
|
|
|
ports:
|
|
|
|
- "${FUNKWHALE_API_IP:-127.0.0.1}:${FUNKWHALE_API_PORT:-5000}:5000"
|
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|