2022-02-13 21:49:28 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-03 13:21:03 +00:00
|
|
|
## vars
|
2022-08-15 08:31:39 +00:00
|
|
|
privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine"
|
|
|
|
privatebin_version='1.4.0-alpine3.16'
|
2022-09-03 13:21:03 +00:00
|
|
|
## default vars : override with ENV var
|
2022-02-13 21:49:28 +00:00
|
|
|
listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}"
|
2022-09-03 13:21:03 +00:00
|
|
|
## mandatory ENV vars
|
|
|
|
upstream_images="${privatebin_image} docker.io/library/alpine"
|
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
|
|
|
container_name="${project_name}"
|
2022-09-03 13:22:14 +00:00
|
|
|
service_name="container-${container_name}.service"
|
2022-02-13 21:49:28 +00:00
|
|
|
srvdata_volume='privatebin-data'
|
|
|
|
varlibnginxtmp_volume='privatebin-var-lib-nginx-tmp'
|
|
|
|
run_volume='privatebin-run'
|
2022-04-28 18:02:15 +00:00
|
|
|
tmp_volume='privatebin-tmp'
|
|
|
|
nonpersistent_volumes="${varlibnginxtmp_volume} ${run_volume} ${tmp_volume}"
|