HedgeDoc - possibilité de passer de postgres à mysql Fix 1
This commit is contained in:
parent
b1a513a5a9
commit
3c68332ede
|
@ -36,7 +36,7 @@ CMD_DB_USERNAME=hedgedoc
|
|||
CMD_DB_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}
|
||||
CMD_DB_DATABASE=hedgedoc
|
||||
CMD_DB_HOST=database
|
||||
CMD_DB_PORT=5432
|
||||
CMD_DB_PORT=${database_port}
|
||||
CMD_DB_DIALECT=${database_dialect}
|
||||
#CMD_DB_URL=sqlite:///data/sqlite.db
|
||||
#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_PASSWORD=${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}
|
||||
MYSQL_DATABASE=hedgedoc
|
||||
MYSQL_RANDOM_ROOT_PASSWORD=true
|
||||
EOT
|
||||
|
||||
export hedgedoc_image
|
||||
|
|
|
@ -6,8 +6,12 @@ database_image="docker.io/library/postgres"
|
|||
database_version='14.5-alpine'
|
||||
database_path="/var/lib/postgresql/data"
|
||||
database_dialect=postgres
|
||||
database_port=5432
|
||||
#database_image="docker.io/library/mariadb"
|
||||
#database_version='10'
|
||||
#database_path="/var/lib/mysql"
|
||||
#database_dialect=mysql
|
||||
#database_port=3306
|
||||
## mandatory ENV vars
|
||||
envvars='GARBAYE_HEDGEDOC_DATABASE_PASSWORD GARBAYE_HEDGEDOC_DOMAIN'
|
||||
## internal vars : do not touch
|
||||
|
|
Loading…
Reference in a new issue