High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(deployment): add shm_size for PG (#19472)
Matthew Momjian2a8019726c7a
diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.ymlindex f44f8dae05..0694bf57f2 100644--- a/docker/docker-compose.dev.yml+++ b/docker/docker-compose.dev.yml@@ -134,6 +134,7 @@ services:- ${UPLOAD_LOCATION}/postgres:/var/lib/postgresql/dataports:- 5432:5432+ shm_size: 128mb# set IMMICH_TELEMETRY_INCLUDE=all in .env to enable metrics# immich-prometheus:# container_name: immich_prometheusdiff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.ymlindex 18348620ca..b293260555 100644--- a/docker/docker-compose.prod.yml+++ b/docker/docker-compose.prod.yml@@ -75,6 +75,7 @@ services:- ${UPLOAD_LOCATION}/postgres:/var/lib/postgresql/dataports:- 5432:5432+ shm_size: 128mbrestart: always# set IMMICH_TELEMETRY_INCLUDE=all in .env to enable metricsdiff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex c9ddee2a62..95d375ccd6 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -67,6 +67,7 @@ services:volumes:# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file- ${DB_DATA_LOCATION}:/var/lib/postgresql/data+ shm_size: 128mbrestart: alwaysvolumes:diff --git a/docs/docs/FAQ.mdx b/docs/docs/FAQ.mdxindex 24aa8e5d1b..906d9fd355 100644--- a/docs/docs/FAQ.mdx+++ b/docs/docs/FAQ.mdx@@ -458,7 +458,7 @@ A result of `on` means that checksums are enabled.<summary>Check if checksums are enabled</summary>```bash-docker exec -it immich_postgres psql --dbname=postgres --username=<DB_USERNAME> --command="show data_checksums"+docker exec -it immich_postgres psql --dbname=postgres --username=postgres --command="show data_checksums"data_checksums----------------on@@ -473,7 +473,7 @@ If checksums are enabled, you can check the status of the database with the foll<summary>Check for database corruption</summary>```bash-docker exec -it immich_postgres psql --dbname=postgres --username=<DB_USERNAME> --command="SELECT datname, checksum_failures, checksum_last_failure FROM pg_stat_database WHERE datname IS NOT NULL"+docker exec -it immich_postgres psql --dbname=postgres --username=postgres --command="SELECT datname, checksum_failures, checksum_last_failure FROM pg_stat_database WHERE datname IS NOT NULL"datname | checksum_failures | checksum_last_failure-----------+-------------------+-----------------------postgres | 0 |