This commit is contained in:
alexbelgium
2025-05-28 10:46:08 +02:00
parent e0a0da019b
commit 684b61f921
3 changed files with 9 additions and 1 deletions

View File

@@ -114,4 +114,6 @@ LABEL \
# 6 HealthcheckNOT #
####################
HEALTHCHECK NONE
# Can't be implemented as container is optimized for memory usage, so the webserver and Node are spun down during idle

View File

@@ -38,5 +38,5 @@
"slug": "postgres",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
"version": "15.7-29"
"version": "15.7-29_test"
}

View File

@@ -8,6 +8,7 @@ set -e
CONFIG_HOME="/config"
PGDATA="${PGDATA:-/config/database}"
export PGDATA
PG_VERSION_FILE="$PGDATA/pg_major_version"
VECTOR_VERSION_FILE="$PGDATA/pgvector_version"
@@ -22,6 +23,11 @@ chmod 700 "$PGDATA"
# Set permissions
chmod -R 755 "$CONFIG_HOME"
bashio::log.info "Starting entrypoint"
/usr/local/bin/immich-docker-entrypoint.sh postgres -c config_file=/etc/postgresql/postgresql.conf
exit 0
# Ensure PostgreSQL config file exists
if [ ! -f "$CONFIG_HOME/postgresql.conf" ]; then
if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then