matrix : variabilisation des interfaces/ports

This commit is contained in:
Gitouche 2022-02-11 13:10:08 +01:00
parent dd81dda3f1
commit 117946a695
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if ! podman volume exists ${dbvolume} ; then
exit 1
fi
podman pod create --publish ${listen_if}:8086:8008 --name ${pod_name} && \
podman pod create --publish ${listen_if}:${listen_port}:8008 --name ${pod_name} && \
podman run -d --name ${db_container_name} --pod ${pod_name} \
--mount type=volume,src=${dbvolume},dst=/var/lib/postgresql/data/ \
-e POSTGRES_PASSWORD=${GARBAYE_MATRIX_POSTGRES_PASSWORD} \

View File

@ -12,7 +12,8 @@ confvolume='matrixdotorg_synapse-data'
dbvolume='matrixdotorg_synapse-pgsql'
container_name='synapse'
db_container_name='synapse-db'
listen_if='127.0.0.1'
listen_if="${GARBAYE_MATRIX_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_MATRIX_ENV_LISTENPORT:-8086}"
GARBAYE_MATRIX_DOMAIN="${GARBAYE_MATRIX_DOMAIN:-garbaye.fr}"
GARBAYE_MATRIX_URL="${GARBAYE_MATRIX_URL:-https://matrix.garbaye.fr}"
envvars='GARBAYE_MATRIX_POSTGRES_PASSWORD GARBAYE_MATRIX_DOMAIN GARBAYE_MATRIX_URL'