2018-08-11 14:21:14 +00:00
|
|
|
version: "3"
|
2017-06-23 21:00:42 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
front:
|
2018-01-08 21:47:14 +00:00
|
|
|
build: front
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-23 21:00:42 +00:00
|
|
|
environment:
|
|
|
|
- "HOST=0.0.0.0"
|
2018-09-22 12:29:30 +00:00
|
|
|
- "VUE_PORT=${VUE_PORT-8080}"
|
2018-09-09 14:59:28 +00:00
|
|
|
ports:
|
|
|
|
- "${VUE_PORT-8080}:${VUE_PORT-8080}"
|
2017-06-23 21:00:42 +00:00
|
|
|
volumes:
|
2018-08-11 14:21:14 +00:00
|
|
|
- "./front:/app"
|
|
|
|
- "/app/node_modules"
|
|
|
|
- "./po:/po"
|
2018-04-08 16:19:32 +00:00
|
|
|
networks:
|
|
|
|
- federation
|
|
|
|
- internal
|
|
|
|
labels:
|
|
|
|
traefik.backend: "${COMPOSE_PROJECT_NAME-node1}"
|
2018-05-08 14:30:42 +00:00
|
|
|
traefik.frontend.rule: "Host:${COMPOSE_PROJECT_NAME-node1}.funkwhale.test,${NODE_IP-127.0.0.1}"
|
2018-08-11 14:21:14 +00:00
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.federation.protocol: "http"
|
|
|
|
traefik.federation.port: "${VUE_PORT-8080}"
|
2017-06-23 21:00:42 +00:00
|
|
|
|
|
|
|
postgres:
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-23 21:00:42 +00:00
|
|
|
image: postgres
|
2018-09-23 12:38:42 +00:00
|
|
|
command: postgres -c log_min_duration_statement=0
|
2018-04-08 16:19:32 +00:00
|
|
|
volumes:
|
|
|
|
- "./data/${COMPOSE_PROJECT_NAME-node1}/postgres:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- internal
|
2017-06-23 21:00:42 +00:00
|
|
|
|
|
|
|
redis:
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-23 21:00:42 +00:00
|
|
|
image: redis:3.0
|
2018-04-08 16:19:32 +00:00
|
|
|
volumes:
|
|
|
|
- "./data/${COMPOSE_PROJECT_NAME-node1}/redis:/data"
|
|
|
|
networks:
|
|
|
|
- internal
|
2017-06-23 21:00:42 +00:00
|
|
|
|
|
|
|
celeryworker:
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-23 21:00:42 +00:00
|
|
|
build:
|
|
|
|
context: ./api
|
2017-06-29 21:26:57 +00:00
|
|
|
dockerfile: docker/Dockerfile.test
|
2017-06-23 21:00:42 +00:00
|
|
|
links:
|
2018-08-11 14:21:14 +00:00
|
|
|
- postgres
|
|
|
|
- redis
|
2018-08-19 14:22:14 +00:00
|
|
|
command: celery -A funkwhale_api.taskapp worker -l debug -B
|
2017-06-23 21:00:42 +00:00
|
|
|
environment:
|
2018-04-08 16:19:32 +00:00
|
|
|
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
|
|
|
|
- "FUNKWHALE_HOSTNAME_SUFFIX=funkwhale.test"
|
|
|
|
- "FUNKWHALE_HOSTNAME_PREFIX=${COMPOSE_PROJECT_NAME}"
|
|
|
|
- "FUNKWHALE_PROTOCOL=${FUNKWHALE_PROTOCOL-http}"
|
2017-12-13 22:36:10 +00:00
|
|
|
- "DATABASE_URL=postgresql://postgres@postgres/postgres"
|
|
|
|
- "CACHE_URL=redis://redis:6379/0"
|
2017-06-23 21:00:42 +00:00
|
|
|
volumes:
|
|
|
|
- ./api:/app
|
2018-04-21 16:15:29 +00:00
|
|
|
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
|
2018-04-08 16:19:32 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2017-06-23 21:00:42 +00:00
|
|
|
api:
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-23 21:00:42 +00:00
|
|
|
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
|
2018-04-21 16:15:29 +00:00
|
|
|
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
|
2017-07-17 20:00:32 +00:00
|
|
|
environment:
|
2018-04-08 16:19:32 +00:00
|
|
|
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
|
|
|
|
- "FUNKWHALE_HOSTNAME_SUFFIX=funkwhale.test"
|
|
|
|
- "FUNKWHALE_HOSTNAME_PREFIX=${COMPOSE_PROJECT_NAME}"
|
|
|
|
- "FUNKWHALE_PROTOCOL=${FUNKWHALE_PROTOCOL-http}"
|
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
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2018-04-08 16:19:32 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2017-06-28 21:30:26 +00:00
|
|
|
nginx:
|
2018-03-29 18:30:24 +00:00
|
|
|
command: /entrypoint.sh
|
2018-03-29 17:55:24 +00:00
|
|
|
env_file:
|
|
|
|
- .env.dev
|
|
|
|
- .env
|
2017-06-28 21:30:26 +00:00
|
|
|
image: nginx
|
2018-03-29 18:30:24 +00:00
|
|
|
environment:
|
2018-08-11 14:21:14 +00:00
|
|
|
- "VUE_PORT=${VUE_PORT-8080}"
|
2018-04-08 16:19:32 +00:00
|
|
|
- "COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME- }"
|
|
|
|
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
|
2017-06-28 21:30:26 +00:00
|
|
|
links:
|
|
|
|
- api
|
|
|
|
- front
|
|
|
|
volumes:
|
|
|
|
- ./docker/nginx/conf.dev:/etc/nginx/nginx.conf
|
2018-03-29 18:30:24 +00:00
|
|
|
- ./docker/nginx/entrypoint.sh:/entrypoint.sh:ro
|
2018-04-21 16:15:29 +00:00
|
|
|
- "${MUSIC_DIRECTORY-./data/music}:/music:ro"
|
2018-03-29 18:30:24 +00:00
|
|
|
- ./deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf.template:ro
|
2017-06-28 21:30:26 +00:00
|
|
|
- ./api/funkwhale_api/media:/protected/media
|
|
|
|
ports:
|
2018-04-08 16:19:32 +00:00
|
|
|
- "6001"
|
|
|
|
networks:
|
|
|
|
- internal
|
2018-03-12 22:38:39 +00:00
|
|
|
docs:
|
|
|
|
build: docs
|
|
|
|
command: python serve.py
|
|
|
|
volumes:
|
|
|
|
- ".:/app/"
|
|
|
|
ports:
|
2018-08-11 14:21:14 +00:00
|
|
|
- "35730:35730"
|
|
|
|
- "8001:8001"
|
2018-04-08 16:19:32 +00:00
|
|
|
|
2018-04-26 12:26:11 +00:00
|
|
|
api-docs:
|
|
|
|
image: swaggerapi/swagger-ui
|
|
|
|
environment:
|
|
|
|
- "API_URL=/swagger.yml"
|
|
|
|
ports:
|
2018-08-11 14:21:14 +00:00
|
|
|
- "8002:8080"
|
2018-04-26 12:26:11 +00:00
|
|
|
volumes:
|
2018-05-22 20:57:20 +00:00
|
|
|
- "./docs/swagger.yml:/usr/share/nginx/html/swagger.yml"
|
2018-04-26 12:26:11 +00:00
|
|
|
|
2018-04-08 16:19:32 +00:00
|
|
|
networks:
|
2018-08-11 14:21:14 +00:00
|
|
|
? internal
|
2018-04-08 16:19:32 +00:00
|
|
|
federation:
|
|
|
|
external:
|
|
|
|
name: federation
|