From 787f47d45ec7182a59f046a460323f03b1addc7e Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Sun, 3 Mar 2019 07:38:00 +0100 Subject: [PATCH] Set restart policy on containers that were missing it --- roles/docker/tasks/services/netdata.yml | 1 + roles/docker/tasks/services/postfix.yml | 1 + roles/docker/tasks/services/websites.yml | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/docker/tasks/services/netdata.yml b/roles/docker/tasks/services/netdata.yml index ba08afbc..adfa1abe 100644 --- a/roles/docker/tasks/services/netdata.yml +++ b/roles/docker/tasks/services/netdata.yml @@ -4,6 +4,7 @@ docker_container: name: netdata image: netdata/netdata + restart_policy: unless-stopped hostname: "hevonen.servers.{{ base_domain }}" capabilities: - SYS_PTRACE diff --git a/roles/docker/tasks/services/postfix.yml b/roles/docker/tasks/services/postfix.yml index 5d5d6db1..59d5472e 100644 --- a/roles/docker/tasks/services/postfix.yml +++ b/roles/docker/tasks/services/postfix.yml @@ -4,6 +4,7 @@ docker_container: name: postfix image: boky/postfix + restart_policy: unless-stopped networks: - name: postfix env: diff --git a/roles/docker/tasks/services/websites.yml b/roles/docker/tasks/services/websites.yml index 2b956921..58334143 100644 --- a/roles/docker/tasks/services/websites.yml +++ b/roles/docker/tasks/services/websites.yml @@ -2,8 +2,9 @@ - name: setup data.coop website docker container docker_container: - name: website + name: data.coop_website image: docker.data.coop/data-coop-website + restart_policy: unless-stopped networks: - name: external_services env: @@ -13,7 +14,8 @@ - name: setup cryptohagen.dk website docker container docker_container: - name: website + name: cryptohagen_website + restart_policy: unless-stopped image: docker.data.coop/cryptohagen-website networks: - name: external_services