重构部署方案 远程发版
This commit is contained in:
+4
-5
@@ -5,9 +5,8 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "10302:80"
|
||||
depends_on:
|
||||
- blue
|
||||
- green
|
||||
volumes:
|
||||
- ./proxy_nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost/health"]
|
||||
interval: 30s
|
||||
@@ -20,7 +19,7 @@ services:
|
||||
cpus: '0.25'
|
||||
|
||||
blue:
|
||||
build: .
|
||||
image: offerpie-web:latest
|
||||
container_name: offerpie-web-blue
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
@@ -41,7 +40,7 @@ services:
|
||||
cpus: '0.25'
|
||||
|
||||
green:
|
||||
build: .
|
||||
image: offerpie-web:latest
|
||||
container_name: offerpie-web-green
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
|
||||
Reference in New Issue
Block a user