2021-06-14 10:42:59 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-03 12:48:35 +00:00
|
|
|
## vars
|
2022-08-12 18:34:42 +00:00
|
|
|
synapse_image="git.garbaye.fr/garbaye/matrixdotorg-synapse"
|
2023-08-01 16:52:55 +00:00
|
|
|
synapse_version='v1.89.0'
|
2021-06-14 10:42:59 +00:00
|
|
|
postgres_image="docker.io/library/postgres"
|
2023-02-04 20:11:08 +00:00
|
|
|
postgres_version='11-bullseye'
|
2022-09-03 12:48:35 +00:00
|
|
|
## default vars : override with ENV var
|
2022-02-11 12:10:08 +00:00
|
|
|
listen_if="${GARBAYE_MATRIX_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_MATRIX_ENV_LISTENPORT:-8086}"
|
2022-09-03 12:48:35 +00:00
|
|
|
## mandatory ENV vars
|
2021-07-12 19:40:44 +00:00
|
|
|
envvars='GARBAYE_MATRIX_POSTGRES_PASSWORD GARBAYE_MATRIX_DOMAIN GARBAYE_MATRIX_URL'
|
2022-09-03 12:48:35 +00:00
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
2022-11-05 18:11:16 +00:00
|
|
|
pod_name="pod_${project_name}"
|
2022-09-03 12:48:35 +00:00
|
|
|
service_name="pod-${pod_name}.service"
|
|
|
|
upstream_images="${synapse_image} ${postgres_image}"
|
2023-07-29 13:51:24 +00:00
|
|
|
confvolume='podman-matrix_matrixdotorg_synapse-data'
|
|
|
|
dbvolume='podman-matrix_matrixdotorg_synapse-pgsql'
|
2022-09-03 12:48:35 +00:00
|
|
|
container_name='synapse'
|
|
|
|
db_container_name='synapse-db'
|