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"
|
2024-12-21 19:47:39 +00:00
|
|
|
privatebin_version='1.7.5-alpine3.21'
|
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'
|