Advertisement
Guest User

Untitled

a guest
Oct 14th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.81 KB | None | 0 0
  1. services:
  2.   immich-server:
  3.     container_name: immich-server
  4.     image: ghcr.io/immich-app/immich-server:v1.117.0
  5.     group_add:
  6.      - "109"
  7.     extends:
  8.       file: hwaccel.transcoding.yml
  9.       service: quicksync
  10.     volumes:
  11.      - ${UPLOAD_LOCATION}:/usr/src/app/upload
  12.       - /etc/localtime:/etc/localtime:ro
  13.     env_file:
  14.      - ./.env
  15.     depends_on:
  16.      - redis
  17.       - database
  18.     labels:
  19.       traefik.enable: true
  20.       traefik.http.routers.immich.entryPoints: https
  21.       traefik.http.services.immich.loadbalancer.server.port: 3001
  22.       traefik.http.routers.immich.rule: Host(`photos.domain.tld`)
  23.       com.centurylinklabs.watchtower.monitor-only: true
  24.     restart: always
  25.     networks:
  26.      - immich
  27.       - proxy
  28.   immich-machine-learning:
  29.     container_name: immich-machine-learning
  30.     image: ghcr.io/immich-app/immich-machine-learning:v1.117.0
  31.     env_file:
  32.      - ./.env
  33.     volumes:
  34.      - model-cache:/cache
  35.     labels:
  36.       com.centurylinklabs.watchtower.monitor-only: true
  37.     restart: always
  38.     networks:
  39.      - immich
  40.     healthcheck:
  41.       interval: 5m
  42.   redis:
  43.     container_name: immich-redis
  44.     image: library/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
  45.     healthcheck:
  46.       test: redis-cli ping || exit 1
  47.     labels:
  48.       com.centurylinklabs.watchtower.monitor-only: true
  49.     restart: always
  50.     networks:
  51.      - immich
  52.   database:
  53.     container_name: immich-postgres
  54.     image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  55.     env_file:
  56.      - ./.env
  57.     environment:
  58.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  59.       POSTGRES_USER: ${DB_USERNAME}
  60.       POSTGRES_DB: ${DB_DATABASE_NAME}
  61.       POSTGRES_INITDB_ARGS: --data-checksums
  62.     labels:
  63.       com.centurylinklabs.watchtower.monitor-only: true
  64.     volumes:
  65.      - /mnt/media/immich/pgdata:/var/lib/postgresql/data
  66.     healthcheck:
  67.       test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' ||
  68.        exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}'
  69.        --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT
  70.        COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo
  71.         "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
  72.       interval: 5m
  73.       start_interval: 30s
  74.       start_period: 5m
  75.     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"]
  76.     restart: always
  77.     networks:
  78.      - immich
  79.  
  80. networks:
  81.   proxy:
  82.     name: proxy
  83.     external: true
  84.   immich:
  85.     name: immich
  86.     external: true
  87. volumes:
  88.  model-cache:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement