Fix the restart policy condition
This commit is contained in:
parent
db1aec6968
commit
5dcdf0731b
|
@ -23,9 +23,6 @@ services:
|
|||
#ports:
|
||||
# - "{{ docker_swarm_portainer_http_port }}:9000"
|
||||
# - "{{ docker_swarm_portainer_service_port }}:8000"
|
||||
expose:
|
||||
- "9000"
|
||||
- "8000"
|
||||
volumes:
|
||||
- portainer_data:/data
|
||||
networks:
|
||||
|
@ -35,7 +32,7 @@ services:
|
|||
replicas: 1
|
||||
endpoint_mode: dnsrr
|
||||
restart_policy:
|
||||
condition: unless-stopped
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
|
|
Loading…
Reference in New Issue