This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

14
immich/.env Normal file
View file

@ -0,0 +1,14 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Immich
IMMICH_PORT=
IMMICH_REDIS_HOST=
IMMICH_DB_HOST=
IMMICH_DB_NAME=
IMMICH_DB_USER=
IMMICH_DB_PASS=

View file

@ -0,0 +1,95 @@
services:
# https://immich.app/docs/install/docker-compose
immich-server:
image: ${REGISTRY}/immich-server
container_name: immich-server
restart: unless-stopped
command: ['start.sh', 'immich']
ports:
- ${IMMICH_PORT:-2283}:3001
environment:
REDIS_HOSTNAME: ${IMMICH_REDIS_HOST}
DB_HOSTNAME: ${IMMICH_DB_HOST}
DB_USERNAME: ${IMMICH_DB_USER}
DB_PASSWORD: ${IMMICH_DB_PASS}
DB_DATABASE_NAME: ${IMMICH_DB_NAME}
volumes:
- ./library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
depends_on:
- immich-redis
- immich-postgresql
networks:
- immich
immich-microservices:
image: ${REGISTRY}/immich-server
container_name: immich-microservices
restart: unless-stopped
command: ['start.sh', 'microservices']
environment:
REDIS_HOSTNAME: ${IMMICH_REDIS_HOST}
DB_HOSTNAME: ${IMMICH_DB_HOST}
DB_USERNAME: ${IMMICH_DB_USER}
DB_PASSWORD: ${IMMICH_DB_PASS}
DB_DATABASE_NAME: ${IMMICH_DB_NAME}
volumes:
- ./library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- "/nextcloud/baby/Pikachu and Sable/Both Babies:/watch/family/babies/both:ro"
- "/nextcloud/me/Pictures/Forever Starts Here:/watch/family/myve:ro"
- "/nextcloud/me/Pictures/Pikachu:/watch/family/babies/pikachu:ro"
- "/nextcloud/me/Pictures/Sable:/watch/family/babies/sable:ro"
depends_on:
- immich-redis
- immich-postgresql
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
- compute
- video
networks:
- immich
immich-machine-learning:
image: ${REGISTRY}/immich-machine-learning
container_name: immich-machine-learning
restart: unless-stopped
volumes:
- ./model-cache:/cache
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
networks:
- immich
immich-redis:
image: ${REGISTRY}/valkey
container_name: immich-redis
restart: unless-stopped
networks:
- immich
immich-postgresql:
image: ${REGISTRY}/pgvecto-rs
container_name: immich-postgresql
restart: unless-stopped
environment:
POSTGRES_DB: ${IMMICH_DB_NAME}
POSTGRES_USER: ${IMMICH_DB_USER}
POSTGRES_PASSWORD: ${IMMICH_DB_PASS}
volumes:
- ./sql:/var/lib/postgresql/data:rw
networks:
- immich
networks:
immich:
external: false