Change restart policies to always

This commit is contained in:
Sam A. 2023-01-14 19:25:13 +01:00
parent e60382183b
commit 9c83fe9b3a
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
9 changed files with 14 additions and 13 deletions

View file

@ -23,7 +23,7 @@
docker_container: docker_container:
name: caddy name: caddy
image: caddy:{{ services.caddy.version }} image: caddy:{{ services.caddy.version }}
restart_policy: unless-stopped restart_policy: always
networks: networks:
- name: services - name: services
ipv4_address: 172.16.3.2 ipv4_address: 172.16.3.2

View file

@ -17,7 +17,7 @@
docker_container: docker_container:
name: emby_app name: emby_app
image: emby/embyserver_arm64v8:{{ services.emby.version }} image: emby/embyserver_arm64v8:{{ services.emby.version }}
restart_policy: unless-stopped restart_policy: always
env: env:
UID: '1000' UID: '1000'
GID: '1000' GID: '1000'

View file

@ -9,7 +9,7 @@
docker_container: docker_container:
name: monerod_node name: monerod_node
image: sethsimmons/simple-monerod:{{ services.monerod.version }} image: sethsimmons/simple-monerod:{{ services.monerod.version }}
restart_policy: unless-stopped restart_policy: always
networks: networks:
- name: services - name: services
aliases: aliases:

View file

@ -37,7 +37,7 @@
services: services:
postgres: postgres:
image: postgres:{{ services.nextcloud.postgres_version }} image: postgres:{{ services.nextcloud.postgres_version }}
restart: unless-stopped restart: always
environment: environment:
POSTGRES_DB: nextcloud POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud POSTGRES_USER: nextcloud
@ -47,14 +47,14 @@
redis: redis:
image: redis:{{ services.nextcloud.redis_version }} image: redis:{{ services.nextcloud.redis_version }}
restart: unless-stopped restart: always
command: redis-server --requirepass {{ secrets.nextcloud.redis_pw }} command: redis-server --requirepass {{ secrets.nextcloud.redis_pw }}
tmpfs: tmpfs:
- /var/lib/redis - /var/lib/redis
app: app:
image: nextcloud:{{ services.nextcloud.version }} image: nextcloud:{{ services.nextcloud.version }}
restart: unless-stopped restart: always
environment: environment:
POSTGRES_HOST: postgres POSTGRES_HOST: postgres
POSTGRES_DB: nextcloud POSTGRES_DB: nextcloud
@ -90,7 +90,7 @@
cron: cron:
image: nextcloud:{{ services.nextcloud.version }} image: nextcloud:{{ services.nextcloud.version }}
restart: unless-stopped restart: always
entrypoint: /cron.sh entrypoint: /cron.sh
volumes: volumes:
- "{{ services.nextcloud.volume }}/app:/var/www/html:rw" - "{{ services.nextcloud.volume }}/app:/var/www/html:rw"

View file

@ -3,6 +3,7 @@
- name: Create Docker network for Postfix - name: Create Docker network for Postfix
docker_network: docker_network:
name: postfix name: postfix
state: present
- name: Create Postfix volume directories - name: Create Postfix volume directories
file: file:

View file

@ -10,7 +10,7 @@
services: services:
backup: backup:
image: mazzolino/restic:{{ services.restic.version }} image: mazzolino/restic:{{ services.restic.version }}
restart: unless-stopped restart: always
environment: environment:
RUN_ON_STARTUP: 'false' RUN_ON_STARTUP: 'false'
BACKUP_CRON: 0 0 3 * * * BACKUP_CRON: 0 0 3 * * *
@ -36,7 +36,7 @@
prune: prune:
image: mazzolino/restic:{{ services.restic.version }} image: mazzolino/restic:{{ services.restic.version }}
restart: unless-stopped restart: always
environment: environment:
RUN_ON_STARTUP: 'false' RUN_ON_STARTUP: 'false'
PRUNE_CRON: 0 0 4 * * * PRUNE_CRON: 0 0 4 * * *
@ -50,7 +50,7 @@
check: check:
image: mazzolino/restic:{{ services.restic.version }} image: mazzolino/restic:{{ services.restic.version }}
restart: unless-stopped restart: always
environment: environment:
RUN_ON_STARTUP: 'false' RUN_ON_STARTUP: 'false'
CHECK_CRON: 0 0 5 * * * CHECK_CRON: 0 0 5 * * *

View file

@ -4,5 +4,5 @@
docker_container: docker_container:
name: snowflake-proxy name: snowflake-proxy
image: thetorproject/snowflake-proxy:{{ services.snowflake.version }} image: thetorproject/snowflake-proxy:{{ services.snowflake.version }}
restart_policy: unless-stopped restart_policy: always
network_mode: host network_mode: host

View file

@ -9,7 +9,7 @@
docker_container: docker_container:
name: watchtower name: watchtower
image: containrrr/watchtower:{{ services.watchtower.version }} image: containrrr/watchtower:{{ services.watchtower.version }}
restart_policy: unless-stopped restart_policy: always
networks: networks:
- name: watchtower - name: watchtower
env: env:

View file

@ -16,7 +16,7 @@
docker_container: docker_container:
name: wireguard name: wireguard
image: linuxserver/wireguard:{{ services.wireguard.version }} image: linuxserver/wireguard:{{ services.wireguard.version }}
restart_policy: unless-stopped restart_policy: always
networks: networks:
- name: wireguard - name: wireguard
env: env: