restart always to unless-stopped

This commit is contained in:
2025-08-22 14:03:44 -03:00
parent 81f8187a31
commit a9cce165e1
7 changed files with 29 additions and 30 deletions

View File

@@ -31,7 +31,7 @@ services:
#command: tunnel login #command: tunnel login
#command: tunnel create tunnel_ccalifice #command: tunnel create tunnel_ccalifice
command: tunnel --no-autoupdate run command: tunnel --no-autoupdate run
restart: always restart: unless-stopped
networks: networks:
- caddy-net - caddy-net

View File

@@ -13,7 +13,7 @@ services:
container_name: firefly_iii_core container_name: firefly_iii_core
networks: networks:
- firefly_iii - firefly_iii
restart: always restart: unless-stopped
volumes: volumes:
- ./firefly_iii_upload:/var/www/html/storage/upload - ./firefly_iii_upload:/var/www/html/storage/upload
env_file: .env env_file: .env
@@ -27,7 +27,7 @@ services:
container_name: firefly_iii_db container_name: firefly_iii_db
networks: networks:
- firefly_iii - firefly_iii
restart: always restart: unless-stopped
env_file: .db.env env_file: .db.env
volumes: volumes:
- ./firefly_iii_db:/var/lib/mysql - ./firefly_iii_db:/var/lib/mysql
@@ -35,7 +35,7 @@ services:
importer: importer:
image: fireflyiii/data-importer:latest image: fireflyiii/data-importer:latest
hostname: importer hostname: importer
restart: always restart: unless-stopped
container_name: firefly_iii_importer container_name: firefly_iii_importer
networks: networks:
- firefly_iii - firefly_iii
@@ -48,7 +48,7 @@ services:
importer_mor: importer_mor:
image: fireflyiii/data-importer:latest image: fireflyiii/data-importer:latest
hostname: importer hostname: importer
restart: always restart: unless-stopped
container_name: firefly_iii_importer_mor container_name: firefly_iii_importer_mor
networks: networks:
- firefly_iii - firefly_iii
@@ -65,7 +65,7 @@ services:
# #
image: alpine image: alpine
container_name: firefly_iii_cron container_name: firefly_iii_cron
restart: always restart: unless-stopped
command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/REPLACEME\" | crontab - && crond -f -L /dev/stdout" command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/REPLACEME\" | crontab - && crond -f -L /dev/stdout"
networks: networks:
- firefly_iii - firefly_iii

View File

@@ -14,7 +14,7 @@ services:
- GITEA__database__NAME=gitea - GITEA__database__NAME=gitea
- GITEA__database__USER=gitea - GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea - GITEA__database__PASSWD=gitea
restart: always restart: unless-stopped
networks: networks:
- gitea - gitea
volumes: volumes:
@@ -29,7 +29,7 @@ services:
db: db:
image: docker.io/library/postgres:14 image: docker.io/library/postgres:14
restart: always restart: unless-stopped
environment: environment:
- POSTGRES_USER=gitea - POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea - POSTGRES_PASSWORD=gitea

View File

@@ -102,7 +102,7 @@ services:
image: guacamole/guacd image: guacamole/guacd
networks: networks:
- guacnetwork_compose - guacnetwork_compose
restart: always restart: unless-stopped
volumes: volumes:
- ./drive:/drive:rw - ./drive:/drive:rw
- ./record:/record:rw - ./record:/record:rw
@@ -117,7 +117,7 @@ services:
image: postgres:15.2-alpine image: postgres:15.2-alpine
networks: networks:
- guacnetwork_compose - guacnetwork_compose
restart: always restart: unless-stopped
volumes: volumes:
- ./init:/docker-entrypoint-initdb.d:z - ./init:/docker-entrypoint-initdb.d:z
- ./data:/var/lib/postgresql/data:Z - ./data:/var/lib/postgresql/data:Z
@@ -144,13 +144,13 @@ services:
- 8181:8080/tcp # Guacamole is on :8080/guacamole, not /. - 8181:8080/tcp # Guacamole is on :8080/guacamole, not /.
## enable next line when using nginx ## enable next line when using nginx
# - 8080/tcp # - 8080/tcp
restart: always restart: unless-stopped
########### optional ############## ########### optional ##############
# nginx # nginx
# nginx: # nginx:
# container_name: nginx_guacamole_compose # container_name: nginx_guacamole_compose
# restart: always # restart: unless-stopped
# image: nginx:latest # image: nginx:latest
# volumes: # volumes:
# - ./nginx/templates:/etc/nginx/templates:ro # - ./nginx/templates:/etc/nginx/templates:ro

View File

@@ -14,7 +14,7 @@ services:
depends_on: depends_on:
- redis - redis
- database - database
restart: always restart: unless-stopped
immich-machine-learning: immich-machine-learning:
container_name: immich_machine_learning container_name: immich_machine_learning
@@ -23,14 +23,14 @@ services:
- ./model-cache:/cache - ./model-cache:/cache
env_file: env_file:
- .env - .env
restart: always restart: unless-stopped
redis: redis:
container_name: immich_redis container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1 image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
healthcheck: healthcheck:
test: redis-cli ping || exit 1 test: redis-cli ping || exit 1
restart: always restart: unless-stopped
database: database:
container_name: immich_postgres container_name: immich_postgres
@@ -43,4 +43,4 @@ services:
POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_DB: ${DB_DATABASE_NAME}
volumes: volumes:
- ./pgdata:/var/lib/postgresql/data - ./pgdata:/var/lib/postgresql/data
restart: always restart: unless-stopped

View File

@@ -44,7 +44,7 @@ services:
#image: nicolargo/glances:3.4.0.5-full #image: nicolargo/glances:3.4.0.5-full
image: nicolargo/glances:latest-full image: nicolargo/glances:latest-full
container_name: glances container_name: glances
restart: always restart: unless-stopped
pid: host pid: host
ports: ports:
- 61208:61208 - 61208:61208
@@ -64,7 +64,7 @@ services:
- ./uptime-kuma/uptime-kuma-data:/app/data - ./uptime-kuma/uptime-kuma-data:/app/data
ports: ports:
- 3001:3001 # <Host Port>:<Container Port> - 3001:3001 # <Host Port>:<Container Port>
restart: always restart: unless-stopped
environment: environment:
- TZ="America/Sao_Paulo" - TZ="America/Sao_Paulo"
@@ -203,5 +203,7 @@ networks:
external: true external: true
name: caddy-net name: caddy-net
monitoring: monitoring:
name: monitoring-net
grafana: grafana:
name: grafana-net

View File

@@ -2,17 +2,14 @@
# For configuration options and examples, please see: # For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/docker/ # https://gethomepage.dev/latest/configs/docker/
arr-docker: #arr-docker:
host: 192.168.1.201 # host: 192.168.1.201
port: 2375 # port: 2375
services-docker: #services-docker:
host: 192.168.1.202 # host: 192.168.1.202
port: 2375 # port: 2375
morganna-docker: #morganna-docker:
host: 192.168.1.204 # host: 192.168.1.204
port: 2375 # port: 2375
pi-docker:
socket: /var/run/docker.sock