mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
immich tweaks
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
# Immich
|
# Immich
|
||||||
|
|
||||||
[Documentation](https://immich.app/docs/install/docker-compose/)
|
* [Documentation](https://immich.app/docs/install/docker-compose/)
|
||||||
|
* [Documentation for env variables](https://immich.app/docs/install/environment-variables)
|
||||||
Port: 2283
|
|
||||||
|
|
||||||
|
Reverse Poxy Port: 2283
|
||||||
|
|||||||
@@ -10,19 +10,16 @@ services:
|
|||||||
- ${VOL_PATH:-./data}/immich-import:/import
|
- ${VOL_PATH:-./data}/immich-import:/import
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- REDIS_HOSTNAME=${REDIS_HOSTNAME:-immich-redis}
|
- REDIS_HOSTNAME=${IMMICH_REDIS_HOSTNAME:-immich-redis}
|
||||||
- DB_HOSTNAME=${DB_HOSTNAME:-immich-postgres}
|
- DB_HOSTNAME=${IMMICH_DB_HOSTNAME:-immich-postgres}
|
||||||
- DB_PASSWORD=${DB_PASSWORD:-postgres}
|
- DB_PASSWORD=${IMMICH_DB_PASSWORD:-postgres}
|
||||||
- DB_USERNAME=${DB_USERNAME:-postgres}
|
- DB_USERNAME=${IMMICH_DB_USERNAME:-postgres}
|
||||||
- DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich}
|
- DB_DATABASE_NAME=${IMMICH_DB_DATABASE_NAME:-immich}
|
||||||
depends_on:
|
depends_on:
|
||||||
- immich-redis
|
- immich-redis
|
||||||
- immich-postgres
|
- immich-postgres
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
networks:
|
|
||||||
- immich-net
|
|
||||||
- proxy
|
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
|
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
|
||||||
@@ -35,22 +32,18 @@ services:
|
|||||||
- ${VOL_PATH:-./data}/model-cache:/cache
|
- ${VOL_PATH:-./data}/model-cache:/cache
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
networks:
|
|
||||||
- immich-net
|
|
||||||
|
|
||||||
immich-redis:
|
immich-redis:
|
||||||
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
|
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: redis-cli ping || exit 1
|
test: redis-cli ping || exit 1
|
||||||
networks:
|
|
||||||
- immich-net
|
|
||||||
|
|
||||||
immich-postgres:
|
immich-postgres:
|
||||||
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgrespass}
|
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD:-postgrespass}
|
||||||
POSTGRES_USER: ${DB_USERNAME:-postgres}
|
POSTGRES_USER: ${IMMICH_DB_USERNAME:-postgres}
|
||||||
POSTGRES_DB: ${DB_DATABASE_NAME:-immich}
|
POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME:-immich}
|
||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOL_PATH:-./data}/immich-postgres:/var/lib/postgresql/data
|
- ${VOL_PATH:-./data}/immich-postgres:/var/lib/postgresql/data
|
||||||
@@ -71,5 +64,3 @@ services:
|
|||||||
-c max_wal_size=2GB
|
-c max_wal_size=2GB
|
||||||
-c shared_buffers=512MB
|
-c shared_buffers=512MB
|
||||||
-c wal_compression=on
|
-c wal_compression=on
|
||||||
networks:
|
|
||||||
- immich-net
|
|
||||||
|
|||||||
+11
-15
@@ -1,21 +1,17 @@
|
|||||||
|
# IMMICH
|
||||||
|
# documentation for env variables: https://immich.app/docs/install/environment-variables
|
||||||
|
|
||||||
|
## Global
|
||||||
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
|
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
|
||||||
VOL_PATH=./data
|
VOL_PATH=./data
|
||||||
TZ=America/Vancouver
|
TZ=America/Vancouver
|
||||||
|
|
||||||
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
|
## App
|
||||||
|
IMMICH_UPLOAD_LOCATION=./library
|
||||||
# The location where your uploaded files are stored
|
IMMICH_DB_DATA_LOCATION=./postgres
|
||||||
UPLOAD_LOCATION=./library
|
|
||||||
# The location where your database files are stored
|
|
||||||
DB_DATA_LOCATION=./postgres
|
|
||||||
|
|
||||||
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
|
||||||
IMMICH_VERSION=release
|
IMMICH_VERSION=release
|
||||||
|
IMMICH_DB_HOSTNAME=immich-postgres
|
||||||
DB_HOSTNAME=immich-postgres
|
IMMICH_DB_PASSWORD=postgres
|
||||||
DB_PASSWORD=postgres
|
IMMICH_DB_USERNAME=postgres
|
||||||
DB_USERNAME=postgres
|
IMMICH_DB_DATABASE_NAME=immich
|
||||||
DB_DATABASE_NAME=immich
|
IMMICH_REDIS_HOSTNAME=immich-redis
|
||||||
|
|
||||||
REDIS_HOSTNAME=immich-redis
|
|
||||||
|
|||||||
Reference in New Issue
Block a user