2022-11-26 22:00:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
## vars
|
2023-08-18 16:14:05 +00:00
|
|
|
service_image="git.garbaye.fr/garbaye/vaultwarden"
|
2024-03-05 19:44:13 +00:00
|
|
|
service_version='1.30.5-amd64'
|
2023-04-18 19:43:09 +00:00
|
|
|
## default vars : override with ENV var
|
|
|
|
GARBAYE_VAULTWARDEN_DOMAIN="${GARBAYE_VAULTWARDEN_ENV_DOMAIN:-http://localhost}"
|
2023-10-21 12:09:29 +00:00
|
|
|
listen_if="${GARBAYE_VAULTWARDEN_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_VAULTWARDEN_ENV_LISTENPORT:-8090}"
|
2022-11-26 22:00:34 +00:00
|
|
|
## mandatory ENV vars
|
2024-06-10 17:55:46 +00:00
|
|
|
envvars='GARBAYE_VAULTWARDEN_ADMIN_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"
|
2024-06-10 17:55:46 +00:00
|
|
|
upstream_images="${service_image}"
|
2022-11-26 22:00:34 +00:00
|
|
|
datavolume="${project_name}_data"
|
|
|
|
container_name="${project_name}_app"
|
2024-06-10 17:55:46 +00:00
|
|
|
get_default_iface_ipv4 GARBAYE_SMTP_SERVER
|