-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-https.yml.backup
More file actions
77 lines (74 loc) · 1.96 KB
/
Copy pathdocker-compose-https.yml.backup
File metadata and controls
77 lines (74 loc) · 1.96 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
version: '3.8'
services:
server:
image: 272007598366.dkr.ecr.eu-central-1.amazonaws.com/tabsur-server:latest
container_name: tabsur-server
restart: unless-stopped
env_file:
- /opt/tabsur/.env
environment:
- NODE_ENV=production
- PORT=5000
- DB_HOST=3.249.94.227
- DB_PORT=5432
- DB_NAME=coolanu
- DB_USER=coolanu_user
- DB_SSL=false
- CORS_ORIGIN=https://bemyguest.dedyn.io,https://api.bemyguest.dedyn.io,http://54.93.243.196,https://54.93.243.196,http://3.72.76.56,https://3.72.76.56
ports:
- "5000:5000"
networks:
- tabsur-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/system/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
client:
image: 272007598366.dkr.ecr.eu-central-1.amazonaws.com/tabsur-client:latest
container_name: tabsur-client
restart: unless-stopped
environment:
- REACT_APP_SERVER_HOST=https://bemyguest.dedyn.io
# served via load balancer, no direct port mapping
depends_on:
server:
condition: service_healthy
networks:
- tabsur-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
loadbalancer:
image: nginx:alpine
container_name: tabsur-lb
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx-https.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
server:
condition: service_healthy
client:
condition: service_healthy
networks:
- tabsur-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
networks:
tabsur-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16