mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
immich working
This commit is contained in:
+12
-10
@@ -7,12 +7,17 @@ services:
|
|||||||
volumes:
|
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
|
# 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-upload:/usr/src/app/upload
|
||||||
|
- ${VOL_PATH:-./data}/immich-import:/import
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
- REDIS_HOSTNAME=${REDIS_HOSTNAME:-immich-redis}
|
||||||
|
- DB_HOSTNAME=${DB_HOSTNAME:-immich-postgres}
|
||||||
|
- DB_PASSWORD=${DB_PASSWORD:-postgres}
|
||||||
|
- DB_USERNAME=${DB_USERNAME:-postgres}
|
||||||
|
- DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich}
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- immich-redis
|
||||||
- database
|
- immich-postgres
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
networks:
|
networks:
|
||||||
@@ -28,8 +33,6 @@ services:
|
|||||||
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
|
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOL_PATH:-./data}/model-cache:/cache
|
- ${VOL_PATH:-./data}/model-cache:/cache
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
networks:
|
networks:
|
||||||
@@ -45,9 +48,9 @@ services:
|
|||||||
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}
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgrespass}
|
||||||
POSTGRES_USER: ${DB_USERNAME}
|
POSTGRES_USER: ${DB_USERNAME:-postgres}
|
||||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
POSTGRES_DB: ${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
|
||||||
@@ -59,7 +62,6 @@ services:
|
|||||||
echo "checksum failure count is $$Chksum";
|
echo "checksum failure count is $$Chksum";
|
||||||
[ "$$Chksum" = '0' ] || exit 1
|
[ "$$Chksum" = '0' ] || exit 1
|
||||||
interval: 5m
|
interval: 5m
|
||||||
start_interval: 30s
|
|
||||||
start_period: 5m
|
start_period: 5m
|
||||||
command: >-
|
command: >-
|
||||||
postgres
|
postgres
|
||||||
|
|||||||
+3
-8
@@ -10,17 +10,12 @@ UPLOAD_LOCATION=./library
|
|||||||
# The location where your database files are stored
|
# The location where your database files are stored
|
||||||
DB_DATA_LOCATION=./postgres
|
DB_DATA_LOCATION=./postgres
|
||||||
|
|
||||||
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
|
||||||
# TZ=Etc/UTC
|
|
||||||
|
|
||||||
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
||||||
IMMICH_VERSION=release
|
IMMICH_VERSION=release
|
||||||
|
|
||||||
# Connection secret for postgres. You should change it to a random password
|
DB_HOSTNAME=immich-postgres
|
||||||
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
|
|
||||||
DB_PASSWORD=postgres
|
DB_PASSWORD=postgres
|
||||||
|
|
||||||
# The values below this line do not need to be changed
|
|
||||||
###################################################################################
|
|
||||||
DB_USERNAME=postgres
|
DB_USERNAME=postgres
|
||||||
DB_DATABASE_NAME=immich
|
DB_DATABASE_NAME=immich
|
||||||
|
|
||||||
|
REDIS_HOSTNAME=immich-redis
|
||||||
Reference in New Issue
Block a user