重构部署方案 远程发版

This commit is contained in:
zk
2026-05-27 15:44:26 +08:00
parent 8b6d424b2f
commit 833533f780
4 changed files with 77 additions and 83 deletions
+4 -5
View File
@@ -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: