From 9669f2fac544884371e8a65a3ce41dbda39060f5 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 3 Sep 2022 15:21:03 +0200 Subject: [PATCH] Privatebin : use service_name. Prep pour podman-compose 1.+ --- podman-privatebin/vars.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/podman-privatebin/vars.sh b/podman-privatebin/vars.sh index 2935797..67b72ab 100755 --- a/podman-privatebin/vars.sh +++ b/podman-privatebin/vars.sh @@ -1,14 +1,18 @@ #!/usr/bin/env bash - +## vars privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine" privatebin_version='1.4.0-alpine3.16' -container_name='my-privatebin' -service_name="container-${container_name}.service" +## default vars : override with ENV var listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}" 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' varlibnginxtmp_volume='privatebin-var-lib-nginx-tmp' run_volume='privatebin-run' tmp_volume='privatebin-tmp' nonpersistent_volumes="${varlibnginxtmp_volume} ${run_volume} ${tmp_volume}" -upstream_images="${privatebin_image} docker.io/library/alpine"