Privatebin : use service_name. Prep pour podman-compose 1.+

This commit is contained in:
Gitouche 2022-09-03 15:21:03 +02:00
parent 89029890a2
commit 9669f2fac5

View file

@ -1,14 +1,18 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## vars
privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine" privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine"
privatebin_version='1.4.0-alpine3.16' privatebin_version='1.4.0-alpine3.16'
container_name='my-privatebin' ## default vars : override with ENV var
service_name="container-${container_name}.service"
listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}" listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}" listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}"
## mandatory ENV vars
upstream_images="${privatebin_image} docker.io/library/alpine"
## internal vars : do not touch
project_name=${PWD##*/}
container_name="${project_name}"
service_name="container-${pod_name}.service"
srvdata_volume='privatebin-data' srvdata_volume='privatebin-data'
varlibnginxtmp_volume='privatebin-var-lib-nginx-tmp' varlibnginxtmp_volume='privatebin-var-lib-nginx-tmp'
run_volume='privatebin-run' run_volume='privatebin-run'
tmp_volume='privatebin-tmp' tmp_volume='privatebin-tmp'
nonpersistent_volumes="${varlibnginxtmp_volume} ${run_volume} ${tmp_volume}" nonpersistent_volumes="${varlibnginxtmp_volume} ${run_volume} ${tmp_volume}"
upstream_images="${privatebin_image} docker.io/library/alpine"