From 5dcdf0731ba099bede620396fa4655a48577a186 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Oct 2020 18:36:33 +0200 Subject: [PATCH] Fix the restart policy condition --- templates/portainer-agent-stack.yml.j2 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/portainer-agent-stack.yml.j2 b/templates/portainer-agent-stack.yml.j2 index d8ea26f..a348102 100644 --- a/templates/portainer-agent-stack.yml.j2 +++ b/templates/portainer-agent-stack.yml.j2 @@ -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