mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
refactored all to dev
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Immich
|
||||
|
||||
* [Documentation](https://immich.app/docs/install/docker-compose/)
|
||||
* [Documentation for env variables](https://immich.app/docs/install/environment-variables)
|
||||
|
||||
Reverse Poxy Port: 2283
|
||||
|
||||
## Import
|
||||
|
||||
1. Go the the Administrator and [External Libraries](http://localhost:8000/admin/library-management)
|
||||
1. Choose the path: ```/import```
|
||||
1. Place your files in the immich-import directory.
|
||||
1. run the [Job](http://localhost:8000/admin/jobs-status) External Libraries
|
||||
|
||||
## Upgrades
|
||||
|
||||
The version tags can be confusing here.
|
||||
I go to the releases page: https://github.com/immich-app/immich/releases
|
||||
and then bump to that release: IMMICH_IMAGE=ghcr.io/immich-app/immich-server:v1.143.1
|
||||
|
||||
## Note
|
||||
|
||||
If the env file doesn't work after a change, try running ```docker compose up -d --force-recreate```.
|
||||
@@ -0,0 +1,65 @@
|
||||
services:
|
||||
immich-server:
|
||||
image: ${IMMICH_IMAGE}
|
||||
# extends:
|
||||
# file: hwaccel.transcoding.yml
|
||||
# service: cpu # 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
|
||||
- ${VOL_PATH:-./data}/immich-upload:/usr/src/app/upload
|
||||
- ${VOL_PATH:-./data}/immich-import:/import
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- REDIS_HOSTNAME=${IMMICH_REDIS_HOSTNAME:-immich-redis}
|
||||
- DB_HOSTNAME=${IMMICH_DB_HOSTNAME:-immich-postgres}
|
||||
- DB_PASSWORD=${IMMICH_DB_PASSWORD:-postgres}
|
||||
- DB_USERNAME=${IMMICH_DB_USERNAME:-postgres}
|
||||
- DB_DATABASE_NAME=${IMMICH_DB_DATABASE_NAME:-immich}
|
||||
healthcheck:
|
||||
disable: false
|
||||
ports:
|
||||
- "8000:2283"
|
||||
|
||||
immich-machine-learning:
|
||||
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
|
||||
# Example tag: ${IMMICH_VERSION:-release}-cuda
|
||||
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
|
||||
# file: hwaccel.ml.yml
|
||||
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
|
||||
volumes:
|
||||
- ${VOL_PATH:-./data}/model-cache:/cache
|
||||
healthcheck:
|
||||
disable: false
|
||||
|
||||
immich-redis:
|
||||
image: ${REDIS_IMAGE}
|
||||
healthcheck:
|
||||
test: redis-cli ping || exit 1
|
||||
|
||||
immich-postgres:
|
||||
image: ${POSTGRES_IMAGE}
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD:-postgrespass}
|
||||
POSTGRES_USER: ${IMMICH_DB_USERNAME:-postgres}
|
||||
POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME:-immich}
|
||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||
volumes:
|
||||
- ${VOL_PATH:-./data}/immich-postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: >-
|
||||
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
|
||||
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --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_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
|
||||
@@ -0,0 +1,22 @@
|
||||
# IMMICH
|
||||
# documentation for env variables: https://immich.app/docs/install/environment-variables
|
||||
|
||||
## Global
|
||||
VOL_PATH=./data
|
||||
TZ=America/Vancouver
|
||||
|
||||
## App
|
||||
IMMICH_IMAGE=ghcr.io/immich-app/immich-server:release
|
||||
IMMICH_UPLOAD_LOCATION=./library
|
||||
IMMICH_DB_DATA_LOCATION=./postgres
|
||||
IMMICH_DB_HOSTNAME=immich-postgres
|
||||
IMMICH_DB_PASSWORD=postgres
|
||||
IMMICH_DB_USERNAME=postgres
|
||||
IMMICH_DB_DATABASE_NAME=immich
|
||||
IMMICH_REDIS_HOSTNAME=immich-redis
|
||||
|
||||
# REDIS
|
||||
REDIS_IMAGE=redis:6.2.19-alpine
|
||||
|
||||
# POSTGRES
|
||||
POSTGRES_IMAGE=tensorchord/pgvecto-rs:pg14-v0.2.0
|
||||
Reference in New Issue
Block a user