mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
reverted to alpine-16, with commented out attempted changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'''
|
||||
|
||||
Reference in New Issue
Block a user