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:
name: caddy
image: caddy:{{ services.caddy.version }}
restart_policy: unless-stopped
restart_policy: always
networks:
- name: services
ipv4_address: 172.16.3.2

View file

@ -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'

View file

@ -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:

View file

@ -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"

View file

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

View file

@ -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 * * *

View file

@ -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

View file

@ -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:

View file

@ -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: