添加部署文件
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user