-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
135 lines (131 loc) · 3.25 KB
/
Copy pathdocker-compose.deploy.yml
File metadata and controls
135 lines (131 loc) · 3.25 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
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
<<<<<<< HEAD
# For VM deploy only: frontend uses pre-pulled image (no build). Nginx builds from ./nginx.
services:
frontend:
container_name: studioapp-frontend-ecommerce
image: ${FRONTEND_IMAGE}
restart: unless-stopped
ports:
- "3050:3050"
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3050/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- studioapp-net-ecommerce
nginx:
container_name: studioapp-nginx-ecommerce
image: ${NGINX_IMAGE:-studioapp-nginx-ecommerce:latest}
restart: unless-stopped
build:
context: ./nginx
dockerfile: Dockerfile
args:
APP_PORT: 3050
HTTP_PORT: 80
ports:
- "80:80"
- "443:443"
environment:
- app_name=studioapp-frontend-ecommerce
- app_port=3050
volumes:
- ${SSL_CERTS_PATH:-./certs}:/etc/nginx/ssl:ro
depends_on:
frontend:
condition: service_healthy
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:80/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- studioapp-net-ecommerce
networks:
studioapp-net-ecommerce:
driver: bridge
=======
# For VM deploy only: frontend uses pre-pulled image (no build). Nginx builds from ./nginx.
services:
frontend:
container_name: studioapp-frontend-ecommerce
image: ${FRONTEND_IMAGE}
restart: unless-stopped
ports:
- "3050:3050"
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3050/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- studioapp-net-ecommerce
nginx:
container_name: studioapp-nginx-ecommerce
image: ${NGINX_IMAGE:-studioapp-nginx-ecommerce:latest}
restart: unless-stopped
build:
context: ./nginx
dockerfile: Dockerfile
args:
APP_PORT: 3050
HTTP_PORT: 80
ports:
- "80:80"
- "443:443"
environment:
- app_name=studioapp-frontend-ecommerce
- app_port=3050
volumes:
- ${SSL_CERTS_PATH:-./certs}:/etc/nginx/ssl:ro
depends_on:
frontend:
condition: service_healthy
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:80/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- studioapp-net-ecommerce
networks:
studioapp-net-ecommerce:
driver: bridge
>>>>>>> 22b0267a21511be5230e2e8a7fbb8f3f2d788d52