Vaultwarden : variabiliser ip/port + CI+10000
This commit is contained in:
parent
c2aaa99cf0
commit
dac35d517d
|
@ -11,7 +11,7 @@ vaultwarden:
|
||||||
script:
|
script:
|
||||||
- cd podman-vaultwarden
|
- cd podman-vaultwarden
|
||||||
- ./ci_build-images.sh
|
- ./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
|
- ./20_enable.sh
|
||||||
- ./30_start.sh && sleep 10
|
- ./30_start.sh && sleep 10
|
||||||
- ./40_stop.sh
|
- ./40_stop.sh
|
||||||
|
|
|
@ -46,6 +46,8 @@ export database_version
|
||||||
export database_path
|
export database_path
|
||||||
export container_name
|
export container_name
|
||||||
export db_container_name
|
export db_container_name
|
||||||
|
export listen_if
|
||||||
|
export listen_port
|
||||||
|
|
||||||
if ! podman image exists ${service_image}:${service_version}; then
|
if ! podman image exists ${service_image}:${service_version}; then
|
||||||
podman image pull ${service_image}:${service_version} || exit 1
|
podman image pull ${service_image}:${service_version} || exit 1
|
||||||
|
|
|
@ -18,7 +18,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- data:/data:Z
|
- data:/data:Z
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8090:80"
|
- ${listen_if}:${listen_port}:80
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "/healthcheck.sh"]
|
test: ["CMD", "/healthcheck.sh"]
|
||||||
interval: 60s
|
interval: 60s
|
||||||
|
|
|
@ -14,6 +14,8 @@ database_port=5432
|
||||||
#database_port=3306
|
#database_port=3306
|
||||||
## default vars : override with ENV var
|
## default vars : override with ENV var
|
||||||
GARBAYE_VAULTWARDEN_DOMAIN="${GARBAYE_VAULTWARDEN_ENV_DOMAIN:-http://localhost}"
|
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
|
## mandatory ENV vars
|
||||||
envvars='GARBAYE_VAULTWARDEN_ADMIN_PASSWORD GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
|
envvars='GARBAYE_VAULTWARDEN_ADMIN_PASSWORD GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
|
||||||
## internal vars : do not touch
|
## internal vars : do not touch
|
||||||
|
|
Loading…
Reference in a new issue