|
|
|
@ -65,26 +65,23 @@ services:
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
|
|
healthcheck:
|
|
|
|
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --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
|
|
|
|
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
|
|
|
|
interval: 5m
|
|
|
|
start_interval: 30s
|
|
|
|
start_interval: 30s
|
|
|
|
start_period: 5m
|
|
|
|
start_period: 5m
|
|
|
|
command:
|
|
|
|
command: >-
|
|
|
|
[
|
|
|
|
postgres
|
|
|
|
'postgres',
|
|
|
|
-c shared_preload_libraries=vectors.so
|
|
|
|
'-c',
|
|
|
|
-c 'search_path="$$user", public, vectors'
|
|
|
|
'shared_preload_libraries=vectors.so',
|
|
|
|
-c logging_collector=on
|
|
|
|
'-c',
|
|
|
|
-c max_wal_size=2GB
|
|
|
|
'search_path="$$user", public, vectors',
|
|
|
|
-c shared_buffers=512MB
|
|
|
|
'-c',
|
|
|
|
-c wal_compression=on
|
|
|
|
'logging_collector=on',
|
|
|
|
|
|
|
|
'-c',
|
|
|
|
|
|
|
|
'max_wal_size=2GB',
|
|
|
|
|
|
|
|
'-c',
|
|
|
|
|
|
|
|
'shared_buffers=512MB',
|
|
|
|
|
|
|
|
'-c',
|
|
|
|
|
|
|
|
'wal_compression=on',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
|