Files
docker/immich/docker-compose.yml
2024-10-25 18:40:05 +00:00

64 lines
1.7 KiB
YAML

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
restart: always
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
- ./model-cache:/cache
env_file:
- .env
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
restart: always
redis:
container_name: immich_redis
image: redis:6.2-alpine
volumes:
- ./redis:/data
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
restart: always
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ./DB-data:/var/lib/postgresql/data
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
restart: always
volumes:
Immich:
name: Immich
driver: local
driver_opts:
type: nfs4
o: addr=${NFS_SERVER},rw
device: ":${PFAD}"