HedgeDoc - possibilité de passer de postgres à mysql Fix 1

This commit is contained in:
KsmoinO 2022-11-19 22:33:54 +01:00
parent b1a513a5a9
commit 3c68332ede
2 changed files with 6 additions and 1 deletions

View file

@ -36,7 +36,7 @@ CMD_DB_USERNAME=hedgedoc
CMD_DB_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD} CMD_DB_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}
CMD_DB_DATABASE=hedgedoc CMD_DB_DATABASE=hedgedoc
CMD_DB_HOST=database CMD_DB_HOST=database
CMD_DB_PORT=5432 CMD_DB_PORT=${database_port}
CMD_DB_DIALECT=${database_dialect} CMD_DB_DIALECT=${database_dialect}
#CMD_DB_URL=sqlite:///data/sqlite.db #CMD_DB_URL=sqlite:///data/sqlite.db
#CMD_DB_URL=CMD_DB_URL=postgres://hedgedoc:${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}@database:5432/hedgedoc #CMD_DB_URL=CMD_DB_URL=postgres://hedgedoc:${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}@database:5432/hedgedoc
@ -64,6 +64,7 @@ POSTGRES_USER=hedgedoc
MYSQL_USER=hedgedoc MYSQL_USER=hedgedoc
MYSQL_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD} MYSQL_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}
MYSQL_DATABASE=hedgedoc MYSQL_DATABASE=hedgedoc
MYSQL_RANDOM_ROOT_PASSWORD=true
EOT EOT
export hedgedoc_image export hedgedoc_image

View file

@ -6,8 +6,12 @@ database_image="docker.io/library/postgres"
database_version='14.5-alpine' database_version='14.5-alpine'
database_path="/var/lib/postgresql/data" database_path="/var/lib/postgresql/data"
database_dialect=postgres database_dialect=postgres
database_port=5432
#database_image="docker.io/library/mariadb"
#database_version='10'
#database_path="/var/lib/mysql" #database_path="/var/lib/mysql"
#database_dialect=mysql #database_dialect=mysql
#database_port=3306
## mandatory ENV vars ## mandatory ENV vars
envvars='GARBAYE_HEDGEDOC_DATABASE_PASSWORD GARBAYE_HEDGEDOC_DOMAIN' envvars='GARBAYE_HEDGEDOC_DATABASE_PASSWORD GARBAYE_HEDGEDOC_DOMAIN'
## internal vars : do not touch ## internal vars : do not touch