2022-05-26 19:00:27 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
## vars
|
2023-02-25 17:49:38 +00:00
|
|
|
gitea_image="git.garbaye.fr/garbaye/forgejo"
|
2024-11-15 23:30:10 +00:00
|
|
|
gitea_version='7.0.11'
|
2022-05-26 19:00:27 +00:00
|
|
|
postgres_image="docker.io/library/postgres"
|
|
|
|
postgres_version='14'
|
|
|
|
## default vars : override with ENV var
|
|
|
|
weblisten_if="${GARBAYE_GITEA_ENV_WEBLISTENIF:-127.0.0.1}"
|
|
|
|
weblisten_port="${GARBAYE_GITEA_ENV_WEBLISTENPORT:-8088}"
|
|
|
|
sshlisten_if="${GARBAYE_GITEA_ENV_SSHLISTENIF:-0.0.0.0}"
|
2022-05-27 11:08:01 +00:00
|
|
|
sshlisten_port="${GARBAYE_GITEA_ENV_SSHLISTENPORT:-2222}"
|
2023-02-10 15:37:14 +00:00
|
|
|
GARBAYE_GITEA_APPNAME="${GARBAYE_GITEA_ENV_APPNAME:-Gitea}"
|
2022-05-26 19:00:27 +00:00
|
|
|
## mandatory ENV vars
|
2023-02-10 15:37:14 +00:00
|
|
|
envvars='GARBAYE_GITEA_DOMAIN GARBAYE_GITEA_POSTGRES_PASSWORD GARBAYE_GITEA_SMTP_FROM'
|
2022-05-26 19:00:27 +00:00
|
|
|
## internal vars : do not touch
|
2022-08-29 20:36:58 +00:00
|
|
|
project_name=${PWD##*/}
|
2022-08-29 20:39:55 +00:00
|
|
|
pod_name="${project_name}"
|
2022-11-05 17:56:11 +00:00
|
|
|
pod_name="pod_${project_name}"
|
2022-09-03 12:15:07 +00:00
|
|
|
service_name="pod-${pod_name}.service"
|
2023-02-19 13:45:07 +00:00
|
|
|
get_default_iface_ipv4 GARBAYE_GITEA_SMTP_ADDR
|
2022-05-26 19:00:27 +00:00
|
|
|
upstream_images="${gitea_image} ${postgres_image}"
|
|
|
|
confvolume='podman-gitea_gitea-config'
|
|
|
|
datavolume='podman-gitea_gitea-data'
|
|
|
|
dbvolume='podman-gitea_gitea-pgsql'
|
|
|
|
container_name='gitea'
|
|
|
|
db_container_name='gitea-db'
|