reverted to alpine-16, with commented out attempted changes

This commit is contained in:
Keith Martin
2025-03-02 22:42:46 +10:00
parent 55a6a3c0b5
commit b98d5d6ce4
2 changed files with 6 additions and 1 deletions

View File

@@ -137,6 +137,7 @@ services:
## Docs: https://www.postgresql.org/docs/
postgres:
image: postgres:16-alpine
# image: postgres:16-bookworm
expose:
- "5432"
ports:
@@ -145,6 +146,9 @@ services:
- "postgresql:/var/lib/postgresql"
- "./scripts/sql/postgresql-init.sql:/docker-entrypoint-initdb.d/init.sql"
environment:
# POSTGRES_INITDB_ARGS: "--locale-provider=icu --icu-locale=und-u-ks-level2"
# these error. --lc-collate=und-u-ks-level2 --lc-ctype=und-u-ks-level2 --lc-messages=und-u-ks-level2"
# POSTGRES_INITDB_ARGS: "--encoding=UTF8"
POSTGRES_DB: photoprism
POSTGRES_USER: photoprism
POSTGRES_PASSWORD: photoprism

View File

@@ -30,7 +30,8 @@ WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'migrate')\gexec
SELECT 'CREATE USER acceptance PASSWORD ''acceptance'''
WHERE NOT EXISTS (SELECT FROM pg_user WHERE usename = 'acceptance')\gexec
SELECT 'CREATE DATABASE acceptance OWNER acceptance'
-- SELECT 'CREATE DATABASE acceptance OWNER acceptance TEMPLATE "template0" LOCALE_PROVIDER "icu" ICU_LOCALE "und-u-ks-level2";'
SELECT 'CREATE DATABASE acceptance OWNER acceptance;'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'acceptance')\gexec
SELECT 'CREATE USER photoprism_01 PASSWORD ''photoprism_01'''