69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
# -----------------------------
|
|
# Postgres für Immich
|
|
# -----------------------------
|
|
immich-db:
|
|
image: tensorchord/pgvecto-rs:pg15-v0.2.0
|
|
container_name: immich-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: immich
|
|
POSTGRES_PASSWORD: immich
|
|
POSTGRES_DB: immich
|
|
volumes:
|
|
- /srv/docker/daten/immich/db:/var/lib/postgresql/data
|
|
networks:
|
|
- immich-net
|
|
|
|
# -----------------------------
|
|
# Redis für Caching
|
|
# -----------------------------
|
|
immich-redis:
|
|
image: redis:latest
|
|
container_name: immich-redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /srv/docker/daten/immich/redis:/data
|
|
networks:
|
|
- immich-net
|
|
|
|
# -----------------------------
|
|
# Immich Server
|
|
# -----------------------------
|
|
immich-server:
|
|
image: ghcr.io/immich-app/immich-server:release
|
|
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:
|
|
- immich-db
|
|
- immich-redis
|
|
networks:
|
|
- immich-net
|
|
|
|
# -----------------------------
|
|
# Immich Machine Learning Service
|
|
# -----------------------------
|
|
immich-ml:
|
|
image: ghcr.io/immich-app/immich-machine-learning:release
|
|
container_name: immich-ml
|
|
restart: unless-stopped
|
|
environment:
|
|
IMMICH_SERVER_URL: http://immich-server:3001
|
|
REDIS_HOST: immich-redis
|
|
depends_on:
|
|
- immich-server
|
|
- immich-redis
|
|
networks:
|
|
- immich-net
|
|
|
|
networks:
|
|
immich-net:
|
|
driver: bridge |