This commit is contained in:
2026-03-28 23:23:54 +01:00
parent 38cf7ddd0a
commit e442576391

View File

@@ -1,56 +1,69 @@
version: '3.8' version: '3.9'
services: services:
# -----------------------------
# Postgres für Immich
# -----------------------------
immich-db: immich-db:
image: tensorchord/pgvecto-rs:pg15-v0.2.0 image: tensorchord/pgvecto-rs:pg15-v0.2.0
container_name: immich-db container_name: immich-db
restart: unless-stopped
environment: environment:
POSTGRES_USER: immich POSTGRES_USER: immich
POSTGRES_PASSWORD: immichpass POSTGRES_PASSWORD: immich
POSTGRES_DB: immich POSTGRES_DB: immich
volumes: volumes:
- /srv/docker/daten/immich/db:/var/lib/postgresql/data - /srv/docker/daten/immich/db:/var/lib/postgresql/data
restart: unless-stopped
networks: networks:
- immich-net - immich-net
# -----------------------------
# Redis für Caching
# -----------------------------
immich-redis: immich-redis:
image: redis:latest image: redis:latest
container_name: immich-redis container_name: immich-redis
restart: unless-stopped
volumes: volumes:
- /srv/docker/daten/immich/redis:/data - /srv/docker/daten/immich/redis:/data
restart: unless-stopped
networks: networks:
- immich-net - immich-net
# -----------------------------
# Immich Server
# -----------------------------
immich-server: immich-server:
image: ghcr.io/immich-app/immich-server:release image: ghcr.io/immich-app/immich-server:release
container_name: immich-server container_name: immich-server
restart: unless-stopped
ports:
- "2283:3001" # extern 2283 -> intern 3001
environment:
DATABASE_URL: postgres://immich:immich@immich-db:5432/immich
REDIS_HOST: immich-redis
IMMICH_SERVER_URL: http://immich-server:3001
depends_on: depends_on:
- immich-db - immich-db
- immich-redis - immich-redis
environment:
HOST: 0.0.0.0
PORT: 3001
DATABASE_URL: postgres://immich:immichpass@immich-db:5432/immich
REDIS_URL: redis://immich-redis:6379
ports:
- "2283:3001" # Port auf VM, für Browser/App erreichbar
restart: unless-stopped
networks: networks:
- immich-net - immich-net
# -----------------------------
# Immich Machine Learning Service
# -----------------------------
immich-ml: immich-ml:
image: ghcr.io/immich-app/immich-machine-learning:release image: ghcr.io/immich-app/immich-machine-learning:release
container_name: immich-ml container_name: immich-ml
depends_on: restart: unless-stopped
- immich-server
environment: environment:
IMMICH_SERVER_URL: http://immich-server:3001 IMMICH_SERVER_URL: http://immich-server:3001
restart: unless-stopped REDIS_HOST: immich-redis
depends_on:
- immich-server
- immich-redis
networks: networks:
- immich-net - immich-net
networks: networks:
immich-net: immich-net:
name: immich-net driver: bridge