HedgeDoc - possibilité de passer de postgres à mysql

This commit is contained in:
KsmoinO 2022-11-19 22:16:16 +01:00
parent 63c7cf2692
commit b1a513a5a9
3 changed files with 6 additions and 2 deletions

View file

@ -20,7 +20,6 @@ hedgedoc:
- ./80_destroy.sh - ./80_destroy.sh
- podman volume rm podman-hedgedoc_data - podman volume rm podman-hedgedoc_data
- podman volume rm podman-hedgedoc_database - podman volume rm podman-hedgedoc_database
- podman volume rm podman-hedgedoc_uploads
tags: tags:
- garbaye - garbaye
- compute - compute

View file

@ -37,7 +37,7 @@ 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=5432
CMD_DB_DIALECT=postgres 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
#CMD_DB_URL=CMD_DB_URL=mysql://hedgedoc:${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}@database:3306/hedgedoc #CMD_DB_URL=CMD_DB_URL=mysql://hedgedoc:${GARBAYE_HEDGEDOC_DATABASE_PASSWORD}@database:3306/hedgedoc
@ -70,6 +70,7 @@ export hedgedoc_image
export hedgedoc_version export hedgedoc_version
export database_image export database_image
export database_version export database_version
export database_path
export container_name export container_name
export db_container_name export db_container_name

View file

@ -4,6 +4,10 @@ hedgedoc_image="quay.io/hedgedoc/hedgedoc"
hedgedoc_version='1.9.6-alpine' hedgedoc_version='1.9.6-alpine'
database_image="docker.io/library/postgres" database_image="docker.io/library/postgres"
database_version='14.5-alpine' database_version='14.5-alpine'
database_path="/var/lib/postgresql/data"
database_dialect=postgres
#database_path="/var/lib/mysql"
#database_dialect=mysql
## 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