Remove old pg database container
This commit is contained in:
@ -31,7 +31,6 @@ services:
|
|||||||
- db_name
|
- db_name
|
||||||
- db_user
|
- db_user
|
||||||
- db_pass
|
- db_pass
|
||||||
|
|
||||||
|
|
||||||
machine-learning:
|
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.
|
||||||
@ -58,37 +57,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
db:
|
|
||||||
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvector0.8.0
|
|
||||||
container_name: immich_db_pg14
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: [ CMD-SHELL,
|
|
||||||
"pg_isready -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE` || exit 1;",
|
|
||||||
"Chksum=$$(psql -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE` --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
|
|
||||||
volumes:
|
|
||||||
- db:/var/lib/postgresql/data
|
|
||||||
- db_dump:/dbdump
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB_FILE: /run/secrets/db_name
|
|
||||||
POSTGRES_USER_FILE: /run/secrets/db_user
|
|
||||||
POSTGRES_PASSWORD_FILE: /run/secrets/db_pass
|
|
||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
|
||||||
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
|
||||||
# DB_STORAGE_TYPE: 'HDD'
|
|
||||||
secrets:
|
|
||||||
- db_name
|
|
||||||
- db_user
|
|
||||||
- db_pass
|
|
||||||
|
|
||||||
db_pg17:
|
db_pg17:
|
||||||
image: ghcr.io/immich-app/postgres:17-vectorchord0.3.0-pgvector0.8.0
|
image: ghcr.io/immich-app/postgres:17-vectorchord0.3.0-pgvector0.8.0
|
||||||
container_name: immich_db_pg17
|
container_name: immich_db_pg17
|
||||||
@ -105,7 +73,6 @@ services:
|
|||||||
start_period: 5m
|
start_period: 5m
|
||||||
volumes:
|
volumes:
|
||||||
- db_pg17:/var/lib/postgresql/data
|
- db_pg17:/var/lib/postgresql/data
|
||||||
- db_dump:/dbdump
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
@ -123,12 +90,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
model-cache:
|
model-cache:
|
||||||
name: immich_model_cache
|
name: immich_model_cache
|
||||||
db:
|
|
||||||
name: immich_db
|
|
||||||
db_pg17:
|
db_pg17:
|
||||||
name: immich_db_pg17
|
name: immich_db_pg17
|
||||||
db_dump:
|
|
||||||
name: immich_db_dump
|
|
||||||
photos:
|
photos:
|
||||||
name: immich_photos
|
name: immich_photos
|
||||||
driver_opts:
|
driver_opts:
|
||||||
|
Reference in New Issue
Block a user