This commit is contained in:
Fern Garden 2025-07-01 17:30:05 +08:00
parent d4dd9806b4
commit fc40d136e4
35 changed files with 698 additions and 681 deletions

View file

@ -1,23 +1,21 @@
name: immich
services:
immich:
container_name: immich
hostname: immich-server
image: ghcr.io/immich-app/immich-server:release
container_name: immich
depends_on:
- immich_db
- immich_redis
volumes:
- immich_library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
networks:
- default
- proxy
environment:
- DB_USERNAME=postgres
- DB_DATABASE_NAME=immich
- DB_PASSWORD=${DB_PASSWORD}
devices:
- /dev/dri:/dev/dri
depends_on:
- immich_redis
- immich_db
networks:
- default
- proxy
restart: unless-stopped
healthcheck:
disable: false
@ -25,12 +23,28 @@ services:
caddy: photos.ferngarden.net
caddy.import: internal
caddy.reverse_proxy: "{{upstreams 2283}}"
devices:
- /dev/dri:/dev/dri
hostname: immich-server
immich_db:
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1
container_name: immich_db
volumes:
- immich_db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=postgres
- POSTGRES_DB=immich
- POSTGRES_INITDB_ARGS='--data-checksums'
networks:
- default
restart: always
hostname: database
immich_ml:
container_name: immich_ml
hostname: immich-machine-learning
image: ghcr.io/immich-app/immich-machine-learning:release
container_name: immich_ml
volumes:
- immich_ml_cache:/cache
networks:
@ -38,31 +52,17 @@ services:
restart: unless-stopped
healthcheck:
disable: false
hostname: immich-machine-learning
immich_redis:
container_name: immich_redis
hostname: redis
image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
container_name: immich_redis
networks:
- default
restart: unless-stopped
healthcheck:
test: redis-cli ping || exit 1
restart: unless-stopped
immich_db:
container_name: immich_db
hostname: database
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1
networks:
- default
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=postgres
- POSTGRES_DB=immich
- POSTGRES_INITDB_ARGS='--data-checksums'
volumes:
- immich_db:/var/lib/postgresql/data
restart: always
hostname: redis
networks:
default: