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:
|
||||
# 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
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- 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:
|
||||
- redis
|
||||
- database
|
||||
- immich-redis
|
||||
- immich-postgres
|
||||
healthcheck:
|
||||
disable: false
|
||||
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
|
||||
volumes:
|
||||
- ${VOL_PATH:-./data}/model-cache:/cache
|
||||
env_file:
|
||||
- .env
|
||||
healthcheck:
|
||||
disable: false
|
||||
networks:
|
||||
@@ -45,9 +48,9 @@ services:
|
||||
immich-postgres:
|
||||
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgrespass}
|
||||
POSTGRES_USER: ${DB_USERNAME:-postgres}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME:-immich}
|
||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||
volumes:
|
||||
- ${VOL_PATH:-./data}/immich-postgres:/var/lib/postgresql/data
|
||||
@@ -59,7 +62,6 @@ services:
|
||||
echo "checksum failure count is $$Chksum";
|
||||
[ "$$Chksum" = '0' ] || exit 1
|
||||
interval: 5m
|
||||
start_interval: 30s
|
||||
start_period: 5m
|
||||
command: >-
|
||||
postgres
|
||||
|
||||
Reference in New Issue
Block a user