-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
106 lines (98 loc) · 2.04 KB
/
docker-compose.yml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3"
services:
django:
container_name: jatumba_django
depends_on:
- postgres
- redis
env_file: .env
external_links:
- nginx:nginx
image: bkhasanov/jatumba-backend-django:latest
links:
- postgres:postgres
- redis:redis
ports:
- "58000:8000"
restart: always
volumes:
- /tmp/jatumba/gunicorn:/var/log/gunicorn
- static:/static
- media:/media
daphne:
container_name: jatumba_daphne
depends_on:
- postgres
- redis
- worker
env_file: .env
external_links:
- nginx:nginx
image: bkhasanov/jatumba-backend-daphne:latest
links:
- postgres:postgres
- redis:redis
ports:
- "59000:9000"
restart: always
volumes:
- /tmp/jatumba/daphne:/var/log/daphne
worker:
container_name: jatumba_worker
depends_on:
- postgres
- redis
env_file: .env
external_links:
- nginx:nginx
image: bkhasanov/jatumba-backend-worker:latest
links:
- postgres:postgres
- redis:redis
restart: always
frontend:
container_name: jatumba_frontend
image: bkhasanov/jatumba-frontend:latest
volumes:
- frontend-data:/frontend
nginx:
build:
context: jatumba-nginx
dockerfile: Dockerfile.dev
container_name: jatumba_nginx
depends_on:
- frontend
- django
- daphne
links:
- django:django
- daphne:daphne
ports:
- "3000:80"
restart: always
volumes:
- static:/jatumba/backend/static:ro
- media:/jatumba/backend/media:ro
- frontend-data:/jatumba/frontend:ro
postgres:
container_name: jatumba_postgres
image: postgres:latest
ports:
- "55432:5432"
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data/
redis:
container_name: jatumba_redis
image: redis:latest
ports:
- "56379:6379"
restart: always
volumes:
- redis-data:/data
volumes:
media:
static:
frontend-data:
redis-data:
postgres-data: