-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
178 lines (178 loc) · 5.03 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: '3.8'
services:
postgres:
image: postgres:13
ports:
- 5434:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: evenity
restart: unless-stopped
networks:
- doan2022
container_name: postgres
redis:
image: redis
ports:
- 6379:6379
networks:
- doan2022
container_name: redis
frontend:
tty: true
stdin_open: true # without this node doesn't start
build:
dockerfile: ./Dockerfile
context: ./Frontend__Client
image: frontend
ports:
- 8080:8080
networks:
- doan2022
container_name: frontend
restart: unless-stopped
depends_on:
- core-api
core-api:
tty: true
stdin_open: true # without this node doesn't start
build:
dockerfile: ./Dockerfile
context: ./core-api
depends_on:
- postgres
ports:
- 3000:3000
networks:
- doan2022
restart: unless-stopped
volumes:
- DISK1:/usr/src/app/resources
container_name: core-api
payment:
tty: true
stdin_open: true # without this node doesn't start
build:
dockerfile: ./Dockerfile
context: ./payment
# ports:
# - 3002:4002
networks:
- doan2022
container_name: payment
restart: unless-stopped
zoom:
tty: true
stdin_open: true # without this node doesn't start
build:
dockerfile: ./Dockerfile
context: ./zoom
# ports:
# - 3001:4001
networks:
- doan2022
volumes:
- DISK1:/usr/src/app/resources
container_name: zoom
restart: unless-stopped
webserver:
image: nginx:mainline-alpine
container_name: webserver
restart: unless-stopped
volumes:
- web-root:/var/www/html
- ./nginx-conf:/etc/nginx/conf.d
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- dhparam:/etc/ssl/certs
ports:
- "80:80"
- "443:443"
depends_on:
- core-api
networks:
- doan2022
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- webserver
# command: certonly --webroot --webroot-path=/var/www/html --agree-tos --staging -d api.evenity.page -d www.api.evenity.page
# command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --staging -d example.com -d www.example.com
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d evenity.page -d www.evenity.page
# command: >
# sh -c "certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d evenity.page -d www.evenity.page &&
# certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d api.evenity.page -d www.api.evenity.page"
webserver-api:
image: nginx:mainline-alpine
container_name: webserver-api
restart: unless-stopped
volumes:
- web-root-api:/var/www/html
- ./nginx-conf-api:/etc/nginx/conf.d
- certbot-etc-api:/etc/letsencrypt
- certbot-var-api:/var/lib/letsencrypt
- dhparam-api:/etc/ssl/certs
ports:
- "8000:8000"
- "8443:8443"
depends_on:
- core-api
networks:
- doan2022
certbot-api:
image: certbot/certbot
container_name: certbot-api
volumes:
- certbot-etc-api:/etc/letsencrypt
- certbot-var-api:/var/lib/letsencrypt
- web-root-api:/var/www/html
depends_on:
- webserver-api
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d api.evenity.page -d www.api.evenity.page
# command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --staging -d example.com -d www.example.com
# command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d evenity.page -d www.evenity.page
stripe-cli:
image: stripe/stripe-cli
container_name: stripe-cli
command: "listen --api-key sk_test_51L7fYzLHHzSNpGj2Kz5EPBXSvLoo3X91GkEVQkVE5HxEmdhfVBJbhy0oktu0n8qS1J6SsoE76HiECVbehIYRZy5h00SJxqFfLa --forward-to core-api:3000/payment/webhook/"
networks:
- doan2022
networks:
doan2022:
driver: bridge
volumes:
DISK1:
certbot-etc:
certbot-var:
web-root:
driver: local
driver_opts:
type: none
device: ~/Event/views
o: bind
certbot-etc-api:
certbot-var-api:
web-root-api:
driver: local
driver_opts:
type: none
device: ~/Event/views
o: bind
dhparam:
driver: local
driver_opts:
type: none
device: ~/Event/dhparam/
o: bind
dhparam-api:
driver: local
driver_opts:
type: none
device: ~/Event/dhparam-api/
o: bind