84 lines
No EOL
2.4 KiB
YAML
84 lines
No EOL
2.4 KiB
YAML
x-logging: &default-logging
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
services:
|
|
immich-server:
|
|
image: ghcr.io/immich-app/immich-server:release
|
|
container_name: immich_server
|
|
restart: unless-stopped
|
|
environment:
|
|
DB_HOSTNAME: immich-db
|
|
REDIS_HOSTNAME: immich-redis
|
|
DB_USERNAME: immich
|
|
DB_PASSWORD: "IMDB_7xL2mQ9rT4vK1pD8cY6n"
|
|
DB_DATABASE_NAME: immich
|
|
DB_TYPE: postgres
|
|
IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning:3003
|
|
TZ: Europe/Zurich
|
|
volumes:
|
|
- /mnt/immich-data/library:/usr/src/app/upload
|
|
- /mnt/immich-import/xFlashback:/mnt/xFlashback:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
depends_on:
|
|
immich-db:
|
|
condition: service_healthy
|
|
immich-redis:
|
|
condition: service_healthy
|
|
immich-machine-learning:
|
|
condition: service_healthy
|
|
ports:
|
|
- "2283:2283"
|
|
healthcheck:
|
|
test: ["CMD", "immich-admin", "ping"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 30s
|
|
logging: *default-logging
|
|
|
|
immich-db:
|
|
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.3.0
|
|
container_name: immich_db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_PASSWORD: "IMDB_7xL2mQ9rT4vK1pD8cY6n"
|
|
POSTGRES_USER: immich
|
|
POSTGRES_DB: immich
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
TZ: Europe/Zurich
|
|
volumes:
|
|
- /srv/media-int01/data/immich/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -d immich -U immich"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
immich-redis:
|
|
image: redis:alpine
|
|
container_name: immich_redis
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
immich-machine-learning:
|
|
image: ghcr.io/immich-app/immich-machine-learning:release
|
|
container_name: immich_machine_learning
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /srv/media-int01/data/immich/model-cache:/cache
|
|
healthcheck:
|
|
test: ["CMD", "python3", "-c", "import socket; s = socket.socket(); s.settimeout(2); s.connect(('localhost', 3003))"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
logging: *default-logging |