seafile : variabilisation des interfaces/ports

This commit is contained in:
Gitouche 2022-02-11 14:47:30 +01:00
parent c5b00aa9d4
commit e0fd77ea54
3 changed files with 8 additions and 3 deletions

View file

@ -28,7 +28,10 @@ SEAFILE_SERVER_HOSTNAME=${GARBAYE_SEAFILE_SERVER_HOSTNAME}
SEAFILE_ADMIN_EMAIL=${GARBAYE_SEAFILE_ADMIN_EMAIL}
EOT
export GARBAYE_SEAFILE_SEAFILE_VERSION="${seafile_release}"
export seafile_release
export listen_if
export listen_port
podman-compose up -d && \
echo -n "Waiting for seahub_settings.py " && \
while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do

View file

@ -20,10 +20,10 @@ services:
- seafile-net
seafile:
image: "docker.io/seafileltd/seafile-mc:${GARBAYE_SEAFILE_SEAFILE_VERSION}"
image: "docker.io/seafileltd/seafile-mc:${seafile_release}"
container_name: seafile
ports:
- "127.0.0.1:8082:80"
- ${listen_if}:${listen_port}:80
volumes:
- seafile-data:/shared:Z
environment:

View file

@ -5,6 +5,8 @@ service_name="pod-${pod_name}.service"
seafile_release='8.0.8'
dbvolume='podman-seafile_seafile-db'
datavolume='podman-seafile_seafile-data'
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_SEAFILE_ENV_LISTENPORT:-8082}"
get_default_iface_ipv4 GARBAYE_SEAFILE_SMTP_SERVER
GARBAYE_SEAFILE_SERVER_HOSTNAME="${GARBAYE_SEAFILE_ENV_SERVER_HOSTNAME:-seafile.garbaye.fr}"
GARBAYE_SEAFILE_ADMIN_PASSWORD="${GARBAYE_SEAFILE_ENV_ADMIN_PASSWORD:-asecret}"