From 9770535d1c203bfa964f2fa7bbceacb71581a6e9 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Thu, 15 Jun 2023 22:30:05 +0200 Subject: [PATCH] Seafile : websocket --- podman-seafile/10_install.sh | 1 + podman-seafile/docker-compose.yml | 1 + podman-seafile/vars.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/podman-seafile/10_install.sh b/podman-seafile/10_install.sh index 711603c..0e55d2b 100755 --- a/podman-seafile/10_install.sh +++ b/podman-seafile/10_install.sh @@ -34,6 +34,7 @@ export mariadb_release export memcached_release export listen_if export listen_port +export listen_ws_port if ! podman image exists ${seafile_image}:${seafile_release}; then podman image pull ${seafile_image}:${seafile_release} || exit 1 diff --git a/podman-seafile/docker-compose.yml b/podman-seafile/docker-compose.yml index 6943b32..2d308c3 100644 --- a/podman-seafile/docker-compose.yml +++ b/podman-seafile/docker-compose.yml @@ -18,6 +18,7 @@ services: container_name: seafile ports: - ${listen_if}:${listen_port}:80 + - ${listen_if}:${listen_ws_port}:8083 volumes: - seafile-data:/shared:Z environment: diff --git a/podman-seafile/vars.sh b/podman-seafile/vars.sh index 8fde934..9e2b6c0 100644 --- a/podman-seafile/vars.sh +++ b/podman-seafile/vars.sh @@ -7,6 +7,7 @@ seafile_release='10.0.1' ## default vars : override with ENV var listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}" listen_port="${GARBAYE_SEAFILE_ENV_LISTENPORT:-8082}" +let "listen_ws_port = ${listen_port} + 1" GARBAYE_SEAFILE_ADMIN_PASSWORD="${GARBAYE_SEAFILE_ENV_ADMIN_PASSWORD:-asecret}" ## mandatory ENV vars envvars='GARBAYE_SEAFILE_ADMIN_EMAIL GARBAYE_SEAFILE_SERVER_HOSTNAME GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD'