mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 11:25:25 +02:00
76 lines
1.8 KiB
YAML
76 lines
1.8 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
immich-server:
|
|
image: ghcr.io/immich-app/immich-server:v3.0.2
|
|
|
|
volumes:
|
|
- immich-library:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
depends_on:
|
|
immich-redis:
|
|
condition: service_healthy
|
|
immich-database:
|
|
condition: service_healthy
|
|
environment:
|
|
# Database Configuration
|
|
DB_HOSTNAME: ${DB_HOSTNAME}
|
|
DB_PORT: ${DB_PORT}
|
|
DB_USERNAME: ${DB_USERNAME}
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
|
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
|
|
# Redis Configuration
|
|
REDIS_HOSTNAME: ${REDIS_HOSTNAME}
|
|
REDIS_PORT: ${REDIS_PORT}
|
|
REDIS_DBINDEX: ${REDIS_DBINDEX}
|
|
# Server Configuration
|
|
TZ: ${TZ}
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
disable: false
|
|
|
|
immich-machine-learning:
|
|
image: ghcr.io/immich-app/immich-machine-learning:v3.0.2
|
|
|
|
volumes:
|
|
- immich-model-cache:/cache
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
disable: false
|
|
|
|
immich-redis:
|
|
image: valkey/valkey:9
|
|
|
|
volumes:
|
|
- immich-redis-data:/data
|
|
healthcheck:
|
|
test: redis-cli ping || exit 1
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
immich-database:
|
|
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
|
|
|
volumes:
|
|
- immich-postgres:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
|
shm_size: 128mb
|
|
healthcheck:
|
|
test: pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE_NAME} || exit 1
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
immich-model-cache:
|
|
immich-postgres:
|
|
immich-library:
|
|
immich-redis-data:
|