demise
demise
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
i will close this ticket
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
but if my nfs share goes down i will be having even bigger problems. better i will try to take frequent backups. 3. perfect. thanks!
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
1. my database and docker connect to my truenas vm over nfs, i guess it could cause problems 3. i can use ghcr.io/immich-app/immich-server:v1.132.3 right? 4. for other containers that i run, i map some important locations containing config files etc onto a host folder (which i backup). is there something similar in immich as well? i read there is a config file
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
Apart from this: 1. does changing UPLOAD_LOCATION variable and DB_LOCATION variable cause any issues? 2. i will remove the other immich network i created, as docker compose already creates a network by default 3. where to find current release version (and what syntax)? i would like to pin immich version and manually update
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
looks like it worked. format was the issue. also somehow my password had an @ symbol, messing up DB_URL
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
damn i messed up the format. let me try changing it
17 replies
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
here's my docker compose file. i believe extra network is redundant, as compose automatically creates one. also on a side note, i have modified the upload location, instead of using given variable, i have used my own host mapping (hope it's correct and doesn't interfere with immich)
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
environment:
- DB_URL:"postgresql://${IMMICH_DB_USERNAME}:${IMMICH_DB_PASSWORD}@immich_postgres/immich"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/data/backup/immich:/usr/src/app/upload
networks:
- immich
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
networks:
- immich
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
networks:
- immich
environment:
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
POSTGRES_USER: ${IMMICH_DB_USERNAME}
POSTGRES_DB: immich
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ${CONFIGDIR}/immich/db:/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_interval: 30s
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
restart: always

networks:
immich:
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
environment:
- DB_URL:"postgresql://${IMMICH_DB_USERNAME}:${IMMICH_DB_PASSWORD}@immich_postgres/immich"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/data/backup/immich:/usr/src/app/upload
networks:
- immich
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
networks:
- immich
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
networks:
- immich
environment:
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
POSTGRES_USER: ${IMMICH_DB_USERNAME}
POSTGRES_DB: immich
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ${CONFIGDIR}/immich/db:/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_interval: 30s
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
restart: always

networks:
immich:
17 replies