From e5ed78ed74564fd6618b9c81bf9865be9ea36699 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 29 Nov 2021 12:45:47 +0200 Subject: [PATCH] ad config --- .../usr/share/swarmlab.io/sec/swarmlab-sec | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 96eb147..e9d58bd 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -283,27 +283,27 @@ services: - $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf - workerservice: - image: $IMAGE_NAME - privileged: true - environment: - - NODENAME=${NODENAME} - - NODENETWORK=${NODENETWORK} - - DISPLAY=\${DISPLAY} - cap_add: - - NET_ADMIN - user: root - entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] - #ports: - # - "\${SSH_PORT}:22" - networks: - - ${HYBRID_NETWORK} - volumes: - - $Wdir/project:/home/docker/project - - $Wdir/project/data-www:/data-www - - $Wdir/project/config/nginx.conf:/etc/nginx/nginx.conf - - $Wdir/project/config/default.conf:/etc/nginx/conf.d/default.conf - - $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf +# workerservice: +# image: $IMAGE_NAME +# privileged: true +# environment: +# - NODENAME=${NODENAME} +# - NODENETWORK=${NODENETWORK} +# - DISPLAY=\${DISPLAY} +# cap_add: +# - NET_ADMIN +# user: root +# entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] +# #ports: +# # - "\${SSH_PORT}:22" +# networks: +# - ${HYBRID_NETWORK} +# volumes: +# - $Wdir/project:/home/docker/project +# - $Wdir/project/data-www:/data-www +# - $Wdir/project/config/nginx.conf:/etc/nginx/nginx.conf +# - $Wdir/project/config/default.conf:/etc/nginx/conf.d/default.conf +# - $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf networks: ${HYBRID_NETWORK}: @@ -656,7 +656,7 @@ if [ $COMMAND_UP -eq 1 ]; then generate_ssh_keys build_and_push_image # remove for microservices up_master - up_workers + #up_workers prompt_ready show_instruction @@ -677,7 +677,7 @@ elif [ $COMMAND_SCALE -eq 1 ]; then down_master down_workers up_master - up_workers + #up_workers prompt_ready show_instruction @@ -688,7 +688,7 @@ elif [ $COMMAND_RELOAD -eq 1 ]; then down_workers build_and_push_image up_master - up_workers + #up_workers prompt_ready show_instruction