2022-01-09 11:56:04 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-03 13:12:48 +00:00
|
|
|
## vars
|
2022-08-16 19:04:49 +00:00
|
|
|
framadate_image='git.garbaye.fr/garbaye/framadate-app'
|
|
|
|
framadate_version='1.1.19'
|
2023-02-18 21:39:52 +00:00
|
|
|
mysql_image='docker.io/library/mariadb'
|
|
|
|
mysql_version='10.10'
|
2022-09-03 13:12:48 +00:00
|
|
|
## default vars : override with ENV var
|
2022-02-11 13:02:39 +00:00
|
|
|
listen_if="${GARBAYE_FRAMADATE_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_FRAMADATE_ENV_LISTENPORT:-8087}"
|
2023-02-10 15:23:27 +00:00
|
|
|
GARBAYE_FRAMADATE_APP_NAME="${GARBAYE_FRAMADATE_ENV_APP_NAME:-Framadate}"
|
2022-09-03 13:12:48 +00:00
|
|
|
## mandatory ENV vars
|
2023-02-10 15:23:27 +00:00
|
|
|
envvars='GARBAYE_FRAMADATE_DOMAIN GARBAYE_FRAMADATE_ADMIN_MAIL GARBAYE_FRAMADATE_ADMIN_PASSWORD GARBAYE_FRAMADATE_MYSQL_ROOT_PASSWORD GARBAYE_FRAMADATE_MYSQL_PASSWORD'
|
2022-09-03 13:12:48 +00:00
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
2022-11-05 17:23:21 +00:00
|
|
|
pod_name="pod_${project_name}"
|
2022-09-03 13:12:48 +00:00
|
|
|
service_name="pod-${pod_name}.service"
|
|
|
|
get_default_iface_ipv4 GARBAYE_FRAMADATE_SMTP_SERVER
|
2023-10-25 20:49:35 +00:00
|
|
|
upstream_images="${framadate_image} docker.io/library/composer docker.io/library/mariadb docker.io/library/php docker.io/library/composer"
|
2022-09-03 13:12:48 +00:00
|
|
|
dbvolume='podman-framadate_framadate-db'
|