Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- immich-server:
- container_name: immich-server
- image: ghcr.io/immich-app/immich-server:v1.117.0
- group_add:
- - "109"
- extends:
- file: hwaccel.transcoding.yml
- service: quicksync
- volumes:
- - ${UPLOAD_LOCATION}:/usr/src/app/upload
- - /etc/localtime:/etc/localtime:ro
- env_file:
- - ./.env
- depends_on:
- - redis
- - database
- labels:
- traefik.enable: true
- traefik.http.routers.immich.entryPoints: https
- traefik.http.services.immich.loadbalancer.server.port: 3001
- traefik.http.routers.immich.rule: Host(`photos.domain.tld`)
- com.centurylinklabs.watchtower.monitor-only: true
- restart: always
- networks:
- - immich
- - proxy
- immich-machine-learning:
- container_name: immich-machine-learning
- image: ghcr.io/immich-app/immich-machine-learning:v1.117.0
- env_file:
- - ./.env
- volumes:
- - model-cache:/cache
- labels:
- com.centurylinklabs.watchtower.monitor-only: true
- restart: always
- networks:
- - immich
- healthcheck:
- interval: 5m
- redis:
- container_name: immich-redis
- image: library/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
- healthcheck:
- test: redis-cli ping || exit 1
- labels:
- com.centurylinklabs.watchtower.monitor-only: true
- restart: always
- networks:
- - immich
- database:
- container_name: immich-postgres
- image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
- env_file:
- - ./.env
- environment:
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_USER: ${DB_USERNAME}
- POSTGRES_DB: ${DB_DATABASE_NAME}
- POSTGRES_INITDB_ARGS: --data-checksums
- labels:
- com.centurylinklabs.watchtower.monitor-only: true
- volumes:
- - /mnt/media/immich/pgdata:/var/lib/postgresql/data
- healthcheck:
- test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' ||
- exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}'
- --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT
- COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo
- "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
- interval: 5m
- start_interval: 30s
- start_period: 5m
- 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
- networks:
- - immich
- networks:
- proxy:
- name: proxy
- external: true
- immich:
- name: immich
- external: true
- volumes:
- model-cache:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement