services-garbaye/podman-hedgedoc/vars.sh

27 lines
878 B
Bash
Raw Normal View History

2022-11-19 13:19:37 +00:00
#!/usr/bin/env bash
## vars
2022-11-20 12:36:46 +00:00
#hedgedoc_image="quay.io/hedgedoc/hedgedoc"
hedgedoc_image="git.garbaye.fr/garbaye/hedgedoc"
2023-08-01 19:47:58 +00:00
hedgedoc_version='1.9.9-alpine'
2022-11-19 13:19:37 +00:00
database_image="docker.io/library/postgres"
database_version='14-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
2022-11-19 13:19:37 +00:00
## mandatory ENV vars
2022-11-19 19:34:59 +00:00
envvars='GARBAYE_HEDGEDOC_DATABASE_PASSWORD GARBAYE_HEDGEDOC_DOMAIN'
2022-11-19 13:19:37 +00:00
## internal vars : do not touch
project_name=${PWD##*/}
pod_name="pod_${project_name}"
service_name="pod-${pod_name}.service"
upstream_images="${hedgedoc_image} ${postgres_image}"
2022-11-19 19:34:59 +00:00
datavolume="${project_name}_data"
dbvolume="${project_name}_database"
2022-11-19 17:57:17 +00:00
container_name="${project_name}_app"
db_container_name="${project_name}_database"