-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-https-fixed.yml
More file actions
80 lines (77 loc) · 2.07 KB
/
Copy pathdocker-compose-https-fixed.yml
File metadata and controls
80 lines (77 loc) · 2.07 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
version: '3.8'
services:
server:
image: 272007598366.dkr.ecr.eu-central-1.amazonaws.com/tabsur-server:latest
container_name: tabsur-server
restart: unless-stopped
environment:
- NODE_ENV=production
- PORT=5000
- DB_HOST=3.249.94.227
- DB_PORT=5432
- DB_NAME=coolanu
- DB_USER=coolanu_user
- DB_PASSWORD=${DB_PASSWORD:-your_db_password}
- DB_SSL=false
- JWT_SECRET=${JWT_SECRET:-your_jwt_secret}
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY:-your_google_maps_key}
- CORS_ORIGIN=https://bemyguest.dedyn.io
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://api.bemyguest.dedyn.io
- REACT_APP_GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY:-your_google_maps_key}
expose:
- "80"
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
- ./ssl-certs:/etc/letsencrypt:ro
depends_on:
server:
condition: service_healthy
client:
condition: service_healthy
networks:
- tabsur-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "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