From f1c4367c091d1cd04de698a5bada369de510c80e Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Thu, 10 Jan 2019 10:20:46 +0100 Subject: [PATCH] Add restart on-failure --- ansible/roles/web/templates/docker-compose.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/web/templates/docker-compose.j2 b/ansible/roles/web/templates/docker-compose.j2 index 291c137..ad105f2 100644 --- a/ansible/roles/web/templates/docker-compose.j2 +++ b/ansible/roles/web/templates/docker-compose.j2 @@ -25,6 +25,7 @@ web: redis: image: redis command: ["redis-server", "--appendonly", "yes"] + restart: on-failure volumes: - {{ redis_data_dir }}:/data ports: