Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- immich:
- container_name: immich_server
- image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
- volumes:
- - ${MYDATA_FOLDER}/photos/immich:/usr/src/app/upload
- - ${MYDATA_FOLDER}/photos/Archive:/external/photos
- - /etc/localtime:/etc/localtime:ro
- environment:
- TZ: ${TIME_ZONE}
- DB_PASSWORD: ${IMMICH_DB_PASSWORD}
- DB_USERNAME: ${IMMICH_DB_USERNAME}
- DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
- REDIS_HOSTNAME: immich-redis
- DB_HOSTNAME: immich-postgres
- IMMICH_AUTO_CREATE_ALBUM: true
- ports:
- - 2283:3001
- depends_on:
- - immich-redis
- - immich-postgres
- - immich-machine-learning
- - immich-folder-album-creator
- restart: unless-stopped
- immich-folder-album-creator:
- container_name: immich_folder_album_creator
- image: salvoxia/immich-folder-album-creator:latest
- restart: unless-stopped
- environment:
- API_URL: http://immich_server:3001/api
- API_KEY: cO1hcfoCU3k2iUuFMjBO7lLjBdfHPRKUckWRtEAbT18
- ROOT_PATH: /external/photos
- CRON_EXPRESSION: "08 * * * *"
- ALBUM_LEVELS: 4
- ALBUM_SEPARATOR: '-'
- TZ: ${TIME_ZONE}
- immich-machine-learning:
- container_name: immich_machine_learning
- image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
- volumes:
- - ${DATA_FOLDER}/immich/machine-learning:/cache
- environment:
- TZ: ${TIME_ZONE}
- IMMICH_LOG_LEVEL: debug
- restart: unless-stopped
- immich-postgres:
- container_name: immich_postgres
- image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
- environment:
- TZ: ${TIME_ZONE}
- POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
- POSTGRES_USER: ${IMMICH_DB_USERNAME}
- POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME}
- POSTGRES_INITDB_ARGS: '--data-checksums'
- volumes:
- - ${CONFIG_FOLDER}/immich/postgres:/var/lib/postgresql/data
- healthcheck:
- 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
- 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
- immich-redis:
- container_name: immich_redis
- image: docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
- environment:
- TZ: ${TIME_ZONE}
- healthcheck:
- test: redis-cli ping || exit 1
- restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement