2022-11-26 22:00:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
## vars
|
|
|
|
vaultwarden_image="git.garbaye.fr/garbaye/vaultwarden"
|
2022-11-26 22:17:51 +00:00
|
|
|
vaultwarden_version='1.26.0'
|
2022-11-26 22:00:34 +00:00
|
|
|
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
|
2022-11-27 15:20:11 +00:00
|
|
|
envvars='GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
|
2022-11-26 22:00:34 +00:00
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
|
|
|
pod_name="pod_${project_name}"
|
|
|
|
service_name="pod-${pod_name}.service"
|
|
|
|
upstream_images="${vaultwarden_image} ${postgres_image}"
|
|
|
|
datavolume="${project_name}_data"
|
|
|
|
dbvolume="${project_name}_database"
|
|
|
|
container_name="${project_name}_app"
|
|
|
|
db_container_name="${project_name}_database"
|