Newer
Older
Eliot Berriot
committed
services:
front:
Eliot Berriot
committed
environment:
- "HOST=0.0.0.0"
- "WEBPACK_DEVSERVER_PORT=${WEBPACK_DEVSERVER_PORT-8080}"
Eliot Berriot
committed
ports:
- "${WEBPACK_DEVSERVER_PORT-8080}:${WEBPACK_DEVSERVER_PORT-8080}"
Eliot Berriot
committed
volumes:
- './front:/app'
Eliot Berriot
committed
postgres:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
image: postgres
redis:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
image: redis:3.0
celeryworker:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
build:
context: ./api
Eliot Berriot
committed
dockerfile: docker/Dockerfile.test
Eliot Berriot
committed
links:
- postgres
- redis
command: celery -A funkwhale_api.taskapp worker -l debug
Eliot Berriot
committed
environment:
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
- "CACHE_URL=redis://redis:6379/0"
Eliot Berriot
committed
volumes:
- ./api:/app
Eliot Berriot
committed
api:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
build:
context: ./api
Eliot Berriot
committed
command: python /app/manage.py runserver 0.0.0.0:12081
volumes:
- ./api:/app
environment:
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
- "CACHE_URL=redis://redis:6379/0"
Eliot Berriot
committed
links:
- postgres
- redis
Eliot Berriot
committed
nginx:
command: /entrypoint.sh
env_file:
- .env.dev
- .env
Eliot Berriot
committed
image: nginx
environment:
- "WEBPACK_DEVSERVER_PORT=${WEBPACK_DEVSERVER_PORT-8080}"
Eliot Berriot
committed
links:
- api
- front
volumes:
- ./docker/nginx/conf.dev:/etc/nginx/nginx.conf
- ./docker/nginx/entrypoint.sh:/entrypoint.sh:ro
- ./deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf.template:ro
Eliot Berriot
committed
- ./api/funkwhale_api/media:/protected/media
ports: