funkwhale/docker/app.django.yml

33 lines
919 B
YAML

x-django: &django
image: funkwhale-api
volumes:
- ../api:/app
- "${MUSIC_DIRECTORY_SERVE_PATH-../data/music}:/music:ro"
- "../data/plugins:/srv/funkwhale/plugins"
- "../data/staticfiles:/staticfiles"
- "../data/media:/protected/media"
- "../data/${COMPOSE_PROJECT_NAME}/media:/data/media"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- internal
services:
api:
<<: *django
build:
context: ../api
dockerfile: Dockerfile
args:
install_dev_deps: 1
command: >
bash -c "funkwhale-manage collectstatic --no-input
&& uvicorn --reload config.asgi:application --host 0.0.0.0 --port 5000 --reload-dir config/ --reload-dir=funkwhale_api/"
celeryworker:
<<: *django
command: celery -A funkwhale_api.taskapp worker -l debug -B --concurrency=${CELERYD_CONCURRENCY}