-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (75 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
82 lines (75 loc) · 1.84 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
volumes:
backend-data:
services:
proxy:
image: unicef/unpp-proxy
environment:
- DJANGO_APPLICATION_SERVICE_HOST=backend
- FRONTEND_SERVICE_HOST=frontend
build:
context: ./proxy
dockerfile: ./Dockerfile
ports:
- "8080:80"
- "8082:80"
depends_on:
- backend
- frontend
volumes:
- backend-data:/data
redis:
restart: always
image: redis:4.0.11-alpine3.8
backend:
image: unicef/unpp-backend
env_file:
- .env
environment:
- REDIS_INSTANCE=redis:6379
build:
context: ./backend
dockerfile: ./Dockerfile
args:
ENV: dev
REQUIREMENT_FILE: dev.pip
volumes:
- ./backend:/code/
- backend-data:/data
depends_on:
- db
- redis
backend-jobs:
image: unicef/unpp-backend
env_file:
- .env
environment:
- REDIS_INSTANCE=redis:6379
build:
context: ./backend
dockerfile: ./Dockerfile
args:
ENV: dev
REQUIREMENT_FILE: dev.pip
volumes:
- ./backend:/code/
depends_on:
- backend
command: bash -c "/./worker-entrypoint.sh"
db:
image: postgres:9.5.15-alpine
env_file:
- .env
frontend:
image: unicef/unpp-frontend
env_file:
- .env
build:
context: ./frontend
dockerfile: ./Dockerfile
args:
ENV: dev
volumes:
- ./frontend/:/code
- /code/node_modules
command: bash -c "yarn run start"