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_BINDING-8080:}${WEBPACK_DEVSERVER_PORT-8080}"
Eliot Berriot
committed
volumes:
- './front:/app'
networks:
- federation
- internal
labels:
traefik.backend: "${COMPOSE_PROJECT_NAME-node1}"
traefik.frontend.rule: "Host: ${COMPOSE_PROJECT_NAME-node1}.funkwhale.test"
traefik.enable: 'true'
traefik.federation.protocol: 'http'
traefik.federation.port: "${WEBPACK_DEVSERVER_PORT-8080}"
Eliot Berriot
committed
postgres:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
image: postgres
volumes:
- "./data/${COMPOSE_PROJECT_NAME-node1}/postgres:/var/lib/postgresql/data"
networks:
- internal
Eliot Berriot
committed
redis:
env_file:
- .env.dev
- .env
Eliot Berriot
committed
image: redis:3.0
volumes:
- "./data/${COMPOSE_PROJECT_NAME-node1}/redis:/data"
networks:
- internal
Eliot Berriot
committed
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:
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
- "FUNKWHALE_HOSTNAME_SUFFIX=funkwhale.test"
- "FUNKWHALE_HOSTNAME_PREFIX=${COMPOSE_PROJECT_NAME}"
- "FUNKWHALE_PROTOCOL=${FUNKWHALE_PROTOCOL-http}"
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
- "CACHE_URL=redis://redis:6379/0"
Eliot Berriot
committed
volumes:
- ./api:/app
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
networks:
- internal
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
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
- "FUNKWHALE_HOSTNAME_SUFFIX=funkwhale.test"
- "FUNKWHALE_HOSTNAME_PREFIX=${COMPOSE_PROJECT_NAME}"
- "FUNKWHALE_PROTOCOL=${FUNKWHALE_PROTOCOL-http}"
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
- "CACHE_URL=redis://redis:6379/0"
Eliot Berriot
committed
links:
- postgres
- redis
networks:
- internal
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}"
- "COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME- }"
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
Eliot Berriot
committed
links:
- api
- front
volumes:
- ./docker/nginx/conf.dev:/etc/nginx/nginx.conf
- ./docker/nginx/entrypoint.sh:/entrypoint.sh:ro
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
- ./deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf.template:ro
Eliot Berriot
committed
- ./api/funkwhale_api/media:/protected/media
ports:
- "6001"
networks:
- internal
docs:
build: docs
command: python serve.py
volumes:
- ".:/app/"
ports:
- '35730:35730'
- '8001:8001'
networks:
internal:
federation:
external:
name: federation