2022-01-16 21:19:26 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-03 12:52:36 +00:00
|
|
|
## vars
|
2023-06-15 19:57:54 +00:00
|
|
|
mariadb_release='10.6'
|
2022-02-25 12:30:57 +00:00
|
|
|
memcached_release='1.6'
|
2022-08-14 12:17:34 +00:00
|
|
|
seafile_image='git.garbaye.fr/garbaye/seafile-mc'
|
2024-04-25 08:09:28 +00:00
|
|
|
seafile_release='11.0.8'
|
2022-09-03 12:52:36 +00:00
|
|
|
## default vars : override with ENV var
|
2022-02-11 13:47:30 +00:00
|
|
|
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_SEAFILE_ENV_LISTENPORT:-8082}"
|
2023-06-15 20:30:05 +00:00
|
|
|
let "listen_ws_port = ${listen_port} + 1"
|
2022-01-18 20:44:29 +00:00
|
|
|
GARBAYE_SEAFILE_ADMIN_PASSWORD="${GARBAYE_SEAFILE_ENV_ADMIN_PASSWORD:-asecret}"
|
2022-09-03 12:52:36 +00:00
|
|
|
## mandatory ENV vars
|
2023-02-10 15:04:40 +00:00
|
|
|
envvars='GARBAYE_SEAFILE_ADMIN_EMAIL GARBAYE_SEAFILE_SERVER_HOSTNAME GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD'
|
2022-09-03 12:52:36 +00:00
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
2022-11-05 17:54:20 +00:00
|
|
|
pod_name="pod_${project_name}"
|
2022-09-03 12:52:36 +00:00
|
|
|
service_name="pod-${pod_name}.service"
|
|
|
|
get_default_iface_ipv4 GARBAYE_SEAFILE_SMTP_SERVER
|
2022-03-05 19:41:45 +00:00
|
|
|
upstream_images="${seafile_image} docker.io/library/mariadb docker.io/library/memcached"
|
2022-09-03 12:52:36 +00:00
|
|
|
dbvolume='podman-seafile_seafile-db'
|
|
|
|
datavolume='podman-seafile_seafile-data'
|