Simplified nginx service config for single node
This commit is contained in:
parent
ddbc6a11f2
commit
79c51f2228
|
|
@ -39,28 +39,10 @@ services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- '8081:80'
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/config.con:/etc/nginx/nginx.con:ro
|
- ./nginx/config.conf:/etc/nginx/nginx.conf:ro
|
||||||
deploy:
|
|
||||||
replicas: 4
|
|
||||||
update_config:
|
|
||||||
parallelism: 2
|
|
||||||
order: start-first
|
|
||||||
failure_action: rollback
|
|
||||||
delay: 10s
|
|
||||||
rollback_config:
|
|
||||||
parallelism: 0
|
|
||||||
order: stop-first
|
|
||||||
restart_policy:
|
|
||||||
condition: any
|
|
||||||
delay: 5s
|
|
||||||
max_attempts: 3
|
|
||||||
window: 120s
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "service", "nginx", "status"]
|
test: ["CMD", "service", "nginx", "status"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- cluster
|
- cluster
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue