Vaultwarden : variabiliser ip/port + CI+10000

This commit is contained in:
Gitouche 2023-10-21 14:09:29 +02:00
parent c2aaa99cf0
commit dac35d517d
4 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,7 @@ vaultwarden:
script:
- cd podman-vaultwarden
- ./ci_build-images.sh
- GARBAYE_VAULTWARDEN_DATABASE_PASSWORD=z1NnqbjdpBOreGdzHzmcDldL GARBAYE_VAULTWARDEN_ADMIN_PASSWORD='$argon2id$v=19$m=65540,t=3,p=4$TW5OdGJKY1JRbUZlYVVLZU9JSUNlM0U3UWUvY1J1ZUNrdVhkTDRmYjlPVT0$aFGMAuj4UwaXVF3QRGIDbo/g/Fh/BQOnsRI0FTooij4' ./05_freshinstall.sh
- GARBAYE_VAULTWARDEN_ENV_LISTENPORT=18090 GARBAYE_VAULTWARDEN_DATABASE_PASSWORD=z1NnqbjdpBOreGdzHzmcDldL GARBAYE_VAULTWARDEN_ADMIN_PASSWORD='$argon2id$v=19$m=65540,t=3,p=4$TW5OdGJKY1JRbUZlYVVLZU9JSUNlM0U3UWUvY1J1ZUNrdVhkTDRmYjlPVT0$aFGMAuj4UwaXVF3QRGIDbo/g/Fh/BQOnsRI0FTooij4' ./05_freshinstall.sh
- ./20_enable.sh
- ./30_start.sh && sleep 10
- ./40_stop.sh

View file

@ -46,6 +46,8 @@ export database_version
export database_path
export container_name
export db_container_name
export listen_if
export listen_port
if ! podman image exists ${service_image}:${service_version}; then
podman image pull ${service_image}:${service_version} || exit 1

View file

@ -18,7 +18,7 @@ services:
volumes:
- data:/data:Z
ports:
- "127.0.0.1:8090:80"
- ${listen_if}:${listen_port}:80
healthcheck:
test: ["CMD", "/healthcheck.sh"]
interval: 60s

View file

@ -14,6 +14,8 @@ database_port=5432
#database_port=3306
## default vars : override with ENV var
GARBAYE_VAULTWARDEN_DOMAIN="${GARBAYE_VAULTWARDEN_ENV_DOMAIN:-http://localhost}"
listen_if="${GARBAYE_VAULTWARDEN_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_VAULTWARDEN_ENV_LISTENPORT:-8090}"
## mandatory ENV vars
envvars='GARBAYE_VAULTWARDEN_ADMIN_PASSWORD GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
## internal vars : do not touch