From 9f5b3eb544f3d0cb488f38922b9993d6db83bb2a Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 20 Dec 2021 18:39:59 +0200 Subject: [PATCH] ttyd --- install/usr/share/swarmlab.io/sec/sec_bootstrap | 2 +- install/usr/share/swarmlab.io/sec/swarmlab-sec | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/sec_bootstrap b/install/usr/share/swarmlab.io/sec/sec_bootstrap index e62e303..cd6c591 100755 --- a/install/usr/share/swarmlab.io/sec/sec_bootstrap +++ b/install/usr/share/swarmlab.io/sec/sec_bootstrap @@ -48,7 +48,7 @@ case $ROLE in #firefox # /root/start-nginx.sh # Start ssh server - ttyd -p 3000 bash + ttyd -p 3787 bash tail -f /dev/null #/usr/sbin/sshd -D ;; diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 0f83132..912eae1 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -169,6 +169,7 @@ if [ -d "$Wdir/project" ]; then COPY .vimrc /home/docker EXPOSE 8081 + EXPOSE 3787 USER docker EOF fi @@ -248,6 +249,7 @@ if [ "$Wdir" == "$HOME" ]; then COPY .vimrc /home/docker EXPOSE 8081 + EXPOSE 3787 USER docker EOF fi @@ -289,7 +291,7 @@ services: entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] ports: - "\${R_PORT1}:8081" - # - "\${R_PORT2}:3080" + - "\${R_PORT2}:3787" networks: - ${HYBRID_NETWORK} volumes: