Advertisement
pmfernandes

Immich_compose

Oct 3rd, 2024
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.96 KB | None | 0 0
  1.  immich:
  2.     container_name: immich_server
  3.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  4.     volumes:
  5.      - ${MYDATA_FOLDER}/photos/immich:/usr/src/app/upload
  6.       - ${MYDATA_FOLDER}/photos/Archive:/external/photos
  7.       - /etc/localtime:/etc/localtime:ro
  8.     environment:
  9.       TZ: ${TIME_ZONE}
  10.       DB_PASSWORD: ${IMMICH_DB_PASSWORD}
  11.       DB_USERNAME: ${IMMICH_DB_USERNAME}
  12.       DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
  13.       REDIS_HOSTNAME: immich-redis
  14.       DB_HOSTNAME: immich-postgres
  15.       IMMICH_AUTO_CREATE_ALBUM: true
  16.     ports:
  17.      - 2283:3001
  18.     depends_on:
  19.      - immich-redis
  20.       - immich-postgres
  21.       - immich-machine-learning
  22.       - immich-folder-album-creator
  23.     restart: unless-stopped
  24.   immich-folder-album-creator:
  25.     container_name: immich_folder_album_creator
  26.     image: salvoxia/immich-folder-album-creator:latest
  27.     restart: unless-stopped
  28.     environment:
  29.       API_URL: http://immich_server:3001/api
  30.       API_KEY: cO1hcfoCU3k2iUuFMjBO7lLjBdfHPRKUckWRtEAbT18
  31.       ROOT_PATH: /external/photos
  32.       CRON_EXPRESSION: "08 * * * *"
  33.       ALBUM_LEVELS: 4
  34.       ALBUM_SEPARATOR: '-'
  35.       TZ: ${TIME_ZONE}
  36.   immich-machine-learning:
  37.     container_name: immich_machine_learning
  38.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  39.     volumes:
  40.      - ${DATA_FOLDER}/immich/machine-learning:/cache
  41.     environment:
  42.       TZ: ${TIME_ZONE}
  43.       IMMICH_LOG_LEVEL: debug
  44.     restart: unless-stopped
  45.   immich-postgres:
  46.     container_name: immich_postgres
  47.     image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  48.     environment:
  49.       TZ: ${TIME_ZONE}
  50.       POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
  51.       POSTGRES_USER: ${IMMICH_DB_USERNAME}
  52.       POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME}
  53.       POSTGRES_INITDB_ARGS: '--data-checksums'
  54.     volumes:
  55.      - ${CONFIG_FOLDER}/immich/postgres:/var/lib/postgresql/data
  56.     healthcheck:
  57.       test: pg_isready --dbname='${IMMICH_DB_DATABASE_NAME}' --username='${IMMICH_DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${IMMICH_DB_DATABASE_NAME}' --username='${IMMICH_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
  58.       interval: 5m
  59.       start_interval: 30s
  60.       start_period: 5m
  61.     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"]
  62.     restart: always
  63.   immich-redis:
  64.     container_name: immich_redis
  65.     image: docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
  66.     environment:
  67.       TZ: ${TIME_ZONE}
  68.     healthcheck:
  69.       test: redis-cli ping || exit 1
  70.     restart: always
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement