forked from ChatMinder/ChatMinder-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
83 lines (77 loc) · 1.79 KB
/
docker-compose.prod.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
version: '3'
services:
web:
container_name: web
build:
context: ./
dockerfile: Dockerfile.prod
command: gunicorn server.wsgi:application --bind 0.0.0.0:8001
environment:
DJANGO_SETTINGS_MODULE: server.settings.prod
env_file:
- .env
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
expose:
- 8001
entrypoint:
- sh
- config/docker/entrypoint.prod.sh
web2:
container_name: web2
build:
context: ./
dockerfile: Dockerfile.prod
command: gunicorn server.wsgi:application --bind 0.0.0.0:8002
environment:
DJANGO_SETTINGS_MODULE: server.settings.prod
env_file:
- .env
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
expose:
- 8002
entrypoint:
- sh
- config/docker/entrypoint.prod.sh
depends_on:
- web
web3:
container_name: web3
build:
context: ./
dockerfile: Dockerfile.prod
command: gunicorn server.wsgi:application --bind 0.0.0.0:8003
environment:
DJANGO_SETTINGS_MODULE: server.settings.prod
env_file:
- .env
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
expose:
- 8003
entrypoint:
- sh
- config/docker/entrypoint.prod.sh
depends_on:
- web2
nginx:
container_name: nginx
build: ./config/nginx
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
- /etc/letsencrypt/archive/chatminder.app-0002:/etc/nginx/conf.d/certificate
- /home/ubuntu/srv/ubuntu/server/static:/etc/nginx/conf.d/html
- /home/ubuntu/srv/ubuntu/log:/var/log/nginx
ports:
- "80:80"
- "443:443"
depends_on:
- web3
volumes:
static:
media: