Update restart to unless-stopped instead of always

This commit is contained in:
Florian RICHER 2023-09-25 12:49:21 +02:00
parent 64c5be9359
commit f97126930e
12 changed files with 16 additions and 21 deletions

View file

@ -3,7 +3,7 @@ version: '3'
services:
db:
image: postgres:14
restart: always
restart: unless-stopped
container_name: nextcloud_db
networks:
- internal
@ -16,7 +16,7 @@ services:
nextcloud:
image: nextcloud
restart: always
restart: unless-stopped
container_name: nextcloud
networks:
- proxy

View file

@ -13,7 +13,7 @@ services:
dolibarr:
image: tuxgasy/dolibarr:latest
restart: always
restart: unless-stopped
container_name: dolibarr
environment:
DOLI_DB_HOST: mariadb

View file

@ -3,7 +3,7 @@ version: '3'
services:
home_assistant:
image: homeassistant/home-assistant
restart: always
restart: unless-stopped
container_name: home_assistant
environment:
- TZ=Europe/Paris

View file

@ -33,6 +33,7 @@ services:
loki:
image: grafana/loki:latest
restart: unless-stopped
command: -config.file=/etc/loki/config.yml
volumes:
- {{ server.work_dir }}/loki/config:/etc/loki
@ -41,6 +42,7 @@ services:
promtail:
image: grafana/promtail:latest
restart: unless-stopped
command: -config.file=/etc/promtail/config.yml
volumes:
- {{ server.work_dir }}/promtail/config:/etc/promtail

View file

@ -3,7 +3,7 @@ version: '3'
services:
db:
image: postgres:14
restart: always
restart: unless-stopped
container_name: n8n_db
networks:
- internal
@ -16,7 +16,7 @@ services:
n8n:
image: n8nio/n8n
restart: always
restart: unless-stopped
container_name: n8n
networks:
- internal

View file

@ -3,7 +3,7 @@ version: '3'
services:
protonmail-bridge:
image: shenxn/protonmail-bridge
restart: always
restart: unless-stopped
container_name: protonmail-bridge
networks:
- protonmail

View file

@ -2,13 +2,8 @@ api:
dashboard: true
log:
filePath: "/var/log/traefik/traefik.log"
format: json
level: INFO
accessLog:
filePath: "/var/log/traefik/access.log"
format: json
accessLog: {}
entryPoints:
http:

View file

@ -20,8 +20,6 @@ services:
- ./config/traefik.yml:/traefik.yml:ro
- ./config/dynamic_conf.yml:/dynamic_conf.yml:ro
- {{ server.work_dir }}/traefik/base/acme.json:/acme.json:rw
- {{ server.work_dir }}/traefik/base/access.log:/var/log/traefik/access.log:rw
- {{ server.work_dir }}/traefik/base/traefik.log:/var/log/traefik/traefik.log:rw
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
extra_hosts:

View file

@ -3,7 +3,7 @@ version: '3'
services:
db:
image: postgres:15
restart: always
restart: unless-stopped
container_name: db
networks:
- internal
@ -14,7 +14,7 @@ services:
vaultwarden:
image: vaultwarden/server:latest
restart: always
restart: unless-stopped
container_name: vaultwarden
networks:
- proxy

View file

@ -3,7 +3,7 @@ version: '3'
services:
watchtower:
image: containrrr/watchtower:latest
restart: always
restart: unless-stopped
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View file

@ -3,7 +3,7 @@ version: '3'
services:
whoami:
image: "containous/whoami"
restart: always
restart: unless-stopped
container_name: "whoami"
networks:
- proxy

View file

@ -3,7 +3,7 @@ version: '3'
services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
restart: always
restart: unless-stopped
container_name: wireguard
cap_add:
- NET_ADMIN
@ -31,7 +31,7 @@ services:
adguardhome:
image: adguard/adguardhome:latest
restart: always
restart: unless-stopped
container_name: adguardhome
volumes:
- {{ server.work_dir }}/adguardhome/work:/opt/adguardhome/work