添加部署文件

This commit is contained in:
zk
2026-07-10 15:41:11 +08:00
parent bcdd1419e5
commit 30b9a62d2a
6 changed files with 641 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
services:
nginx:
image: nginx:alpine
container_name: offerpie-backend-admin-nginx
restart: unless-stopped
ports:
- "10062:80"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
deploy:
resources:
limits:
memory: 256M
cpus: '1'
blue:
image: offerpie-backend-admin:test
container_name: offerpie-backend-admin-blue
restart: unless-stopped
expose:
- "8081"
environment:
- APP_VERSION=blue
- PROFILES_ACTIVE=test
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/admin/public/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- /logs/offerpie-backend-admin:/app/logs
deploy:
resources:
limits:
memory: 1G
cpus: '1'
green:
image: offerpie-backend-admin:test
container_name: offerpie-backend-admin-green
restart: unless-stopped
expose:
- "8081"
environment:
- APP_VERSION=green
- PROFILES_ACTIVE=test
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/admin/public/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- /logs/offerpie-backend-admin:/app/logs
deploy:
resources:
limits:
memory: 1G
cpus: '1'