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

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