Initialize docker stack repo

This commit is contained in:
g4st3r
2026-03-07 17:28:59 +00:00
commit 319d4eeb3e
458 changed files with 67215 additions and 0 deletions

56
immich/docker-compose.yml Normal file
View File

@@ -0,0 +1,56 @@
version: "3.8"
services:
immich-server:
image: ghcr.io/immich-app/immich-server:release
container_name: immich-server
environment:
PUBLIC_URL: ${PUBLIC_URL}
UPLOAD_LOCATION: /usr/src/app/upload
DB_HOSTNAME: immich-db
DB_PORT: 5432
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
REDIS_HOSTNAME: immich-redis
REDIS_PORT: 6379
MACHINE_LEARNING_URL: http://immich-ml:3003
volumes:
- /mnt/disk3/immich/uploads:/usr/src/app/upload
depends_on:
- immich-db
- immich-redis
- immich-ml
ports:
- "2283:2283"
restart: unless-stopped
immich-ml:
image: ghcr.io/immich-app/immich-machine-learning:release
container_name: immich-ml
ports:
- "3003:3003"
environment:
- TRANSFORMERS_CACHE=/cache
volumes:
- /mnt/disk3/immich/ml-cache:/cache
restart: unless-stopped
immich-db:
image: pgvector/pgvector:pg16
container_name: immich-db
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE_NAME}
volumes:
- /mnt/disk3/immich/db:/var/lib/postgresql/data
restart: unless-stopped
immich-redis:
image: redis:7-alpine
container_name: immich-redis
command: ["redis-server", "--save", "60", "1"]
volumes:
- /nvme/docker/immich-redis:/data
restart: unless-stopped

View File

@@ -0,0 +1,4 @@
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS citext;