2018-03-29 17:55:24 +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-03-29 17:55:24 +00:00
|
|
|
- "WEBPACK_DEVSERVER_PORT=${WEBPACK_DEVSERVER_PORT-8080}"
|
2017-06-23 21:00:42 +00:00
|
|
|
ports:
|
2018-04-08 16:19:32 +00:00
|
|
|
- "${WEBPACK_DEVSERVER_PORT_BINDING-8080:}${WEBPACK_DEVSERVER_PORT-8080}"
|
2017-06-23 21:00:42 +00:00
|
|
|
volumes:
|
|
|
|
- './front:/app'
|
2018-04-16 19:00:56 +00:00
|
|
|
- '/app/node_modules'
|
2018-04-09 18:26:31 +00:00
|
|
|
- './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-04-08 16:19:32 +00:00
|
|
|
traefik.enable: 'true'
|
|
|
|
traefik.federation.protocol: 'http'
|
|
|
|
traefik.federation.port: "${WEBPACK_DEVSERVER_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-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:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2017-12-27 19:29:26 +00:00
|
|
|
command: celery -A funkwhale_api.taskapp worker -l debug
|
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:
|
|
|
|
- "WEBPACK_DEVSERVER_PORT=${WEBPACK_DEVSERVER_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:
|
|
|
|
- '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:
|
|
|
|
- '8002:8080'
|
|
|
|
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:
|
|
|
|
internal:
|
|
|
|
federation:
|
|
|
|
external:
|
|
|
|
name: federation
|