diff --git a/roles/docker_services/tasks/services/caddy.yml b/roles/docker_services/tasks/services/caddy.yml index cf47f77..74d9d42 100644 --- a/roles/docker_services/tasks/services/caddy.yml +++ b/roles/docker_services/tasks/services/caddy.yml @@ -23,7 +23,7 @@ docker_container: name: caddy image: caddy:{{ services.caddy.version }} - restart_policy: unless-stopped + restart_policy: always networks: - name: services ipv4_address: 172.16.3.2 diff --git a/roles/docker_services/tasks/services/emby.yml b/roles/docker_services/tasks/services/emby.yml index e5e6555..597648a 100644 --- a/roles/docker_services/tasks/services/emby.yml +++ b/roles/docker_services/tasks/services/emby.yml @@ -17,7 +17,7 @@ docker_container: name: emby_app image: emby/embyserver_arm64v8:{{ services.emby.version }} - restart_policy: unless-stopped + restart_policy: always env: UID: '1000' GID: '1000' diff --git a/roles/docker_services/tasks/services/monerod.yml b/roles/docker_services/tasks/services/monerod.yml index e9d80f5..b28923e 100644 --- a/roles/docker_services/tasks/services/monerod.yml +++ b/roles/docker_services/tasks/services/monerod.yml @@ -9,7 +9,7 @@ docker_container: name: monerod_node image: sethsimmons/simple-monerod:{{ services.monerod.version }} - restart_policy: unless-stopped + restart_policy: always networks: - name: services aliases: diff --git a/roles/docker_services/tasks/services/nextcloud.yml b/roles/docker_services/tasks/services/nextcloud.yml index 67cbdf8..464abad 100644 --- a/roles/docker_services/tasks/services/nextcloud.yml +++ b/roles/docker_services/tasks/services/nextcloud.yml @@ -37,7 +37,7 @@ services: postgres: image: postgres:{{ services.nextcloud.postgres_version }} - restart: unless-stopped + restart: always environment: POSTGRES_DB: nextcloud POSTGRES_USER: nextcloud @@ -47,14 +47,14 @@ redis: image: redis:{{ services.nextcloud.redis_version }} - restart: unless-stopped + restart: always command: redis-server --requirepass {{ secrets.nextcloud.redis_pw }} tmpfs: - /var/lib/redis app: image: nextcloud:{{ services.nextcloud.version }} - restart: unless-stopped + restart: always environment: POSTGRES_HOST: postgres POSTGRES_DB: nextcloud @@ -90,7 +90,7 @@ cron: image: nextcloud:{{ services.nextcloud.version }} - restart: unless-stopped + restart: always entrypoint: /cron.sh volumes: - "{{ services.nextcloud.volume }}/app:/var/www/html:rw" diff --git a/roles/docker_services/tasks/services/postfix.yml b/roles/docker_services/tasks/services/postfix.yml index ad04b97..bba0ff6 100644 --- a/roles/docker_services/tasks/services/postfix.yml +++ b/roles/docker_services/tasks/services/postfix.yml @@ -3,6 +3,7 @@ - name: Create Docker network for Postfix docker_network: name: postfix + state: present - name: Create Postfix volume directories file: diff --git a/roles/docker_services/tasks/services/restic.yml b/roles/docker_services/tasks/services/restic.yml index 51c1989..b3575a1 100644 --- a/roles/docker_services/tasks/services/restic.yml +++ b/roles/docker_services/tasks/services/restic.yml @@ -10,7 +10,7 @@ services: backup: image: mazzolino/restic:{{ services.restic.version }} - restart: unless-stopped + restart: always environment: RUN_ON_STARTUP: 'false' BACKUP_CRON: 0 0 3 * * * @@ -36,7 +36,7 @@ prune: image: mazzolino/restic:{{ services.restic.version }} - restart: unless-stopped + restart: always environment: RUN_ON_STARTUP: 'false' PRUNE_CRON: 0 0 4 * * * @@ -50,7 +50,7 @@ check: image: mazzolino/restic:{{ services.restic.version }} - restart: unless-stopped + restart: always environment: RUN_ON_STARTUP: 'false' CHECK_CRON: 0 0 5 * * * diff --git a/roles/docker_services/tasks/services/snowflake.yml b/roles/docker_services/tasks/services/snowflake.yml index 06eb27c..4e807b5 100644 --- a/roles/docker_services/tasks/services/snowflake.yml +++ b/roles/docker_services/tasks/services/snowflake.yml @@ -4,5 +4,5 @@ docker_container: name: snowflake-proxy image: thetorproject/snowflake-proxy:{{ services.snowflake.version }} - restart_policy: unless-stopped + restart_policy: always network_mode: host diff --git a/roles/docker_services/tasks/services/watchtower.yml b/roles/docker_services/tasks/services/watchtower.yml index fc194e5..6d2bdc5 100644 --- a/roles/docker_services/tasks/services/watchtower.yml +++ b/roles/docker_services/tasks/services/watchtower.yml @@ -9,7 +9,7 @@ docker_container: name: watchtower image: containrrr/watchtower:{{ services.watchtower.version }} - restart_policy: unless-stopped + restart_policy: always networks: - name: watchtower env: diff --git a/roles/docker_services/tasks/services/wireguard.yml b/roles/docker_services/tasks/services/wireguard.yml index 9b4358b..d89849c 100644 --- a/roles/docker_services/tasks/services/wireguard.yml +++ b/roles/docker_services/tasks/services/wireguard.yml @@ -16,7 +16,7 @@ docker_container: name: wireguard image: linuxserver/wireguard:{{ services.wireguard.version }} - restart_policy: unless-stopped + restart_policy: always networks: - name: wireguard env: