diff --git a/docker/compose/withPostgres/docker-compose.yml b/docker/compose/withPostgres/docker-compose.yml index 57f83f328a..f0ba4ef4ab 100644 --- a/docker/compose/withPostgres/docker-compose.yml +++ b/docker/compose/withPostgres/docker-compose.yml @@ -6,7 +6,7 @@ volumes: services: postgres: - image: postgres:11 + image: postgres:16 restart: always environment: - POSTGRES_USER diff --git a/docker/compose/withPostgres/init-data.sh b/docker/compose/withPostgres/init-data.sh index 69a8d79e1e..dffb61e84e 100755 --- a/docker/compose/withPostgres/init-data.sh +++ b/docker/compose/withPostgres/init-data.sh @@ -6,7 +6,8 @@ if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-} psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL CREATE USER ${POSTGRES_NON_ROOT_USER} WITH PASSWORD '${POSTGRES_NON_ROOT_PASSWORD}'; GRANT ALL PRIVILEGES ON DATABASE ${POSTGRES_DB} TO ${POSTGRES_NON_ROOT_USER}; - EOSQL + GRANT CREATE ON SCHEMA public TO ${POSTGRES_NON_ROOT_USER}; + EOSQL else echo "SETUP INFO: No Environment variables given!" fi diff --git a/docker/compose/withPostgresAndWorker/docker-compose.yml b/docker/compose/withPostgresAndWorker/docker-compose.yml index 038490e941..5dd8e942e7 100644 --- a/docker/compose/withPostgresAndWorker/docker-compose.yml +++ b/docker/compose/withPostgresAndWorker/docker-compose.yml @@ -31,7 +31,7 @@ x-shared: &shared services: postgres: - image: postgres:11 + image: postgres:16 restart: always environment: - POSTGRES_USER diff --git a/docker/compose/withPostgresAndWorker/init-data.sh b/docker/compose/withPostgresAndWorker/init-data.sh index 69a8d79e1e..f98a972ed6 100755 --- a/docker/compose/withPostgresAndWorker/init-data.sh +++ b/docker/compose/withPostgresAndWorker/init-data.sh @@ -6,6 +6,7 @@ if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-} psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL CREATE USER ${POSTGRES_NON_ROOT_USER} WITH PASSWORD '${POSTGRES_NON_ROOT_PASSWORD}'; GRANT ALL PRIVILEGES ON DATABASE ${POSTGRES_DB} TO ${POSTGRES_NON_ROOT_USER}; + GRANT CREATE ON SCHEMA public TO ${POSTGRES_NON_ROOT_USER}; EOSQL else echo "SETUP INFO: No Environment variables given!"