Newer
Older
Eliot Berriot
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '2'
services:
front:
build:
dockerfile: docker/Dockerfile.dev
context: ./front
env_file: .env.dev
environment:
- "HOST=0.0.0.0"
ports:
- "8080:8080"
volumes:
- './front:/app'
- /app/node_modules
postgres:
env_file: .env.dev
image: postgres
redis:
env_file: .env.dev
image: redis:3.0
celeryworker:
env_file: .env.dev
build:
context: ./api
dockerfile: docker/Dockerfile.local
links:
- postgres
- redis
command: python manage.py celery worker
environment:
- C_FORCE_ROOT=true
volumes:
- ./api:/app
Eliot Berriot
committed
api:
env_file: .env.dev
build:
context: ./api
Eliot Berriot
committed
command: python /app/manage.py runserver 0.0.0.0:12081
volumes:
- ./api:/app
Eliot Berriot
committed
ports:
Eliot Berriot
committed
links:
- postgres
- redis
- celeryworker
Eliot Berriot
committed
nginx:
env_file: .env.dev
image: nginx
links:
- api
- front
volumes:
- ./docker/nginx/conf.dev:/etc/nginx/nginx.conf
- ./api/funkwhale_api/media:/protected/media
ports:
- "0.0.0.0:6001:80"