Browse Source

ttyd

master
zeus 3 years ago
parent
commit
9f5b3eb544
  1. 2
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  2. 4
      install/usr/share/swarmlab.io/sec/swarmlab-sec

2
install/usr/share/swarmlab.io/sec/sec_bootstrap

@ -48,7 +48,7 @@ case $ROLE in
#firefox #firefox
# /root/start-nginx.sh # /root/start-nginx.sh
# Start ssh server # Start ssh server
ttyd -p 3000 bash ttyd -p 3787 bash
tail -f /dev/null tail -f /dev/null
#/usr/sbin/sshd -D #/usr/sbin/sshd -D
;; ;;

4
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -169,6 +169,7 @@ if [ -d "$Wdir/project" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 8081 EXPOSE 8081
EXPOSE 3787
USER docker USER docker
EOF EOF
fi fi
@ -248,6 +249,7 @@ if [ "$Wdir" == "$HOME" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 8081 EXPOSE 8081
EXPOSE 3787
USER docker USER docker
EOF EOF
fi fi
@ -289,7 +291,7 @@ services:
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
ports: ports:
- "\${R_PORT1}:8081" - "\${R_PORT1}:8081"
# - "\${R_PORT2}:3080" - "\${R_PORT2}:3787"
networks: networks:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
volumes: volumes:

Loading…
Cancel
Save