Fix the restart policy condition

This commit is contained in:
Andrea Dell'Amico 2020-10-01 18:36:33 +02:00
parent db1aec6968
commit 5dcdf0731b
1 changed files with 1 additions and 4 deletions

View File

@ -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