init: CT104 untracked stack compose files
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
#
|
||||
# WARNING: Make sure to use the docker-compose.yml of the current release:
|
||||
#
|
||||
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
|
||||
#
|
||||
# The compose file on main may not be compatible with the latest release.
|
||||
#
|
||||
|
||||
name: immich
|
||||
services:
|
||||
immich-server:
|
||||
container_name: immich_server
|
||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
||||
extends:
|
||||
file: hwaccel.transcoding.yml
|
||||
service: vaapi # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
|
||||
volumes:
|
||||
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
- ${THUMB_LOCATION}:/usr/src/app/upload/thumbs
|
||||
- ${ENCODED_VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
|
||||
- ${PROFILE_LOCATION}:/usr/src/app/upload/profile
|
||||
- ${BACKUP_LOCATION}:/usr/src/app/upload/backups
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- 12000:2283
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 4G
|
||||
reservations:
|
||||
cpus: "0.5"
|
||||
memory: 2G
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:2283/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
labels:
|
||||
- "homepage.group=media"
|
||||
- "homepage.name=Immich"
|
||||
- "homepage.icon=sh-immich"
|
||||
- "homepage.href=https://immich.nuclide.systems"
|
||||
- "homepage.instance.internal.href=http://192.168.1.40:12000"
|
||||
- "homepage.instance.public.href=https://immich.nuclide.systems"
|
||||
- "homepage.widget.type=immich"
|
||||
- "homepage.widget.url=https://immich.nuclide.systems"
|
||||
- "homepage.widget.key=2aCV1Ab2Np9CH3cbMLnWwmN3KDX80hWWZznjLWU81Mg"
|
||||
|
||||
immich-machine-learning:
|
||||
container_name: immich_machine_learning
|
||||
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
|
||||
extends:
|
||||
file: hwaccel.ml.yml
|
||||
service: openvino
|
||||
volumes:
|
||||
- model-cache:/cache
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 4G
|
||||
reservations:
|
||||
cpus: "0.5"
|
||||
memory: 2G
|
||||
healthcheck:
|
||||
# ML serves on :3003 and exposes /ping (returns "pong"); /health is 404.
|
||||
# The old :3000/health probe was wrong on both port and path.
|
||||
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:3003/ping')\""]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
redis:
|
||||
container_name: immich_redis
|
||||
image: docker.io/valkey/valkey:9@sha256:546304417feac0874c3dd576e0952c6bb8f06bb4093ea0c9ca303c73cf458f63
|
||||
healthcheck:
|
||||
test: redis-cli ping || exit 1
|
||||
restart: unless-stopped
|
||||
shm_size: 256mb
|
||||
database:
|
||||
container_name: immich_postgres
|
||||
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
POSTGRES_INITDB_ARGS: --data-checksums
|
||||
WALG_S3_PREFIX: s3://immich-pg-backup/
|
||||
AWS_ENDPOINT: http://garage:3900
|
||||
AWS_ACCESS_KEY_ID: GK1db4ad9c8e8d3a097fa0824d
|
||||
AWS_SECRET_ACCESS_KEY: c9cd62c53d817e5b89fba6b66cb60850b7b3dca33d58c9b1fdcf1b6544905c64
|
||||
AWS_REGION: us-east-1
|
||||
AWS_S3_FORCE_PATH_STYLE: "true"
|
||||
volumes:
|
||||
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
||||
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||
- /opt/stacks/shared-db/wal-g/wal-g:/usr/local/bin/wal-g:ro
|
||||
shm_size: 1024mb
|
||||
networks:
|
||||
- default
|
||||
- shared_backend
|
||||
power-tools:
|
||||
container_name: immich_power_tools
|
||||
image: ghcr.io/varun-raj/immich-power-tools:latest
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- immich-server
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: "0.25"
|
||||
memory: 1G
|
||||
healthcheck:
|
||||
# power-tools (Next.js) binds its container IP only, NOT localhost, and
|
||||
# has no /health route — probe its own hostname at /api/health.
|
||||
test: ["CMD-SHELL", "wget -q -O /dev/null \"http://$(hostname):3000/api/health\" || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
labels:
|
||||
- "homepage.group=diagnostic"
|
||||
- "homepage.name=Power Tools"
|
||||
- "homepage.icon=sh-immich"
|
||||
- "homepage.href=https://immich-tools.nuclide.systems"
|
||||
- "homepage.instance.public.href=https://immich-tools.nuclide.systems"
|
||||
# immich-dynamic-albums:
|
||||
# image: ghcr.io/kvalev/immich-dynamic-albums:${IMMICH_DYNAMIC_ALBUMS_VERSION:-latest}
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - /mnt/pve/unas/services/immich/dynamic-albums/dynamic-albums.json:/config/dynamic-albums.json:ro
|
||||
# environment:
|
||||
# IMMICH_URL: http://192.168.1.40:2283/
|
||||
# IMMICH_API_KEY: Se8wLYC6UBeuGqVzXdd4LllsAxPdAgsduFW8RhJXfk
|
||||
# CONFIG_FILE: /config/dynamic-albums.json
|
||||
# SCHEDULE_INTERVAL: 1440 # 1440 minutes, meaning once per day
|
||||
# PYTHONUNBUFFERED: true # ensure stdout is flushed on every print
|
||||
# env_file:
|
||||
# - .env
|
||||
# depends_on:
|
||||
# immich-server:
|
||||
# condition: service_healthy
|
||||
volumes:
|
||||
model-cache: null
|
||||
networks:
|
||||
default:
|
||||
name: immich_default
|
||||
shared_backend:
|
||||
external: true
|
||||
Reference in New Issue
Block a user