Simplified nginx service config for single node
This commit is contained in:
parent
ddbc6a11f2
commit
79c51f2228
|
@ -39,28 +39,10 @@ services:
|
|||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- '80:80'
|
||||
- '8081:80'
|
||||
volumes:
|
||||
- ./nginx/config.con:/etc/nginx/nginx.con: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
|
||||
- ./nginx/config.conf:/etc/nginx/nginx.conf:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "service", "nginx", "status"]
|
||||
|
||||
|
||||
|
||||
networks:
|
||||
- cluster
|
||||
|
|
Loading…
Reference in New Issue