mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Allow setting the DB root password seperately
Fixes https://github.com/pixelfed/pixelfed/issues/4980
This commit is contained in:
parent
eccdbe1f57
commit
dd5878b256
2 changed files with 10 additions and 2 deletions
|
@ -1202,6 +1202,14 @@ DOCKER_DB_HOST_PORT="${DB_PORT:?error}"
|
||||||
# @dottie/validate required,number
|
# @dottie/validate required,number
|
||||||
DOCKER_DB_CONTAINER_PORT="${DB_PORT:?error}"
|
DOCKER_DB_CONTAINER_PORT="${DB_PORT:?error}"
|
||||||
|
|
||||||
|
# root password for the database. By default uses DB_PASSWORD
|
||||||
|
# but can be changed in situations where you are migrating
|
||||||
|
# to the included docker-compose and have a different password
|
||||||
|
# set already
|
||||||
|
#
|
||||||
|
# @dottie/validate required
|
||||||
|
DOCKER_DB_ROOT_PASSWORD="${DB_PASSWORD:?error}"
|
||||||
|
|
||||||
# How often Docker health check should run for [db] service
|
# How often Docker health check should run for [db] service
|
||||||
# @dottie/validate required
|
# @dottie/validate required
|
||||||
DOCKER_DB_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL:?error}"
|
DOCKER_DB_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL:?error}"
|
||||||
|
|
|
@ -166,12 +166,12 @@ services:
|
||||||
environment:
|
environment:
|
||||||
TZ: "${TZ:?error}"
|
TZ: "${TZ:?error}"
|
||||||
# MySQL (Oracle) - "Environment Variables" at https://hub.docker.com/_/mysql
|
# MySQL (Oracle) - "Environment Variables" at https://hub.docker.com/_/mysql
|
||||||
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD:?error}"
|
MYSQL_ROOT_PASSWORD: "${DOCKER_DB_ROOT_PASSWORD:?error}"
|
||||||
MYSQL_USER: "${DB_USERNAME:?error}"
|
MYSQL_USER: "${DB_USERNAME:?error}"
|
||||||
MYSQL_PASSWORD: "${DB_PASSWORD:?error}"
|
MYSQL_PASSWORD: "${DB_PASSWORD:?error}"
|
||||||
MYSQL_DATABASE: "${DB_DATABASE:?error}"
|
MYSQL_DATABASE: "${DB_DATABASE:?error}"
|
||||||
# MySQL (MariaDB) - "Start a mariadb server instance with user, password and database" at https://hub.docker.com/_/mariadb
|
# MySQL (MariaDB) - "Start a mariadb server instance with user, password and database" at https://hub.docker.com/_/mariadb
|
||||||
MARIADB_ROOT_PASSWORD: "${DB_PASSWORD:?error}"
|
MARIADB_ROOT_PASSWORD: "${DOCKER_DB_ROOT_PASSWORD:?error}"
|
||||||
MARIADB_USER: "${DB_USERNAME:?error}"
|
MARIADB_USER: "${DB_USERNAME:?error}"
|
||||||
MARIADB_PASSWORD: "${DB_PASSWORD:?error}"
|
MARIADB_PASSWORD: "${DB_PASSWORD:?error}"
|
||||||
MARIADB_DATABASE: "${DB_DATABASE:?error}"
|
MARIADB_DATABASE: "${DB_DATABASE:?error}"
|
||||||
|
|
Loading…
Reference in a new issue