Browse Source

ad config

master
zeus 3 years ago
parent
commit
e5ed78ed74
  1. 48
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -283,27 +283,27 @@ services:
- $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf - $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf
workerservice: # workerservice:
image: $IMAGE_NAME # image: $IMAGE_NAME
privileged: true # privileged: true
environment: # environment:
- NODENAME=${NODENAME} # - NODENAME=${NODENAME}
- NODENETWORK=${NODENETWORK} # - NODENETWORK=${NODENETWORK}
- DISPLAY=\${DISPLAY} # - DISPLAY=\${DISPLAY}
cap_add: # cap_add:
- NET_ADMIN # - NET_ADMIN
user: root # user: root
entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] # entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
#ports: # #ports:
# - "\${SSH_PORT}:22" # # - "\${SSH_PORT}:22"
networks: # networks:
- ${HYBRID_NETWORK} # - ${HYBRID_NETWORK}
volumes: # volumes:
- $Wdir/project:/home/docker/project # - $Wdir/project:/home/docker/project
- $Wdir/project/data-www:/data-www # - $Wdir/project/data-www:/data-www
- $Wdir/project/config/nginx.conf:/etc/nginx/nginx.conf # - $Wdir/project/config/nginx.conf:/etc/nginx/nginx.conf
- $Wdir/project/config/default.conf:/etc/nginx/conf.d/default.conf # - $Wdir/project/config/default.conf:/etc/nginx/conf.d/default.conf
- $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf # - $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf
networks: networks:
${HYBRID_NETWORK}: ${HYBRID_NETWORK}:
@ -656,7 +656,7 @@ if [ $COMMAND_UP -eq 1 ]; then
generate_ssh_keys generate_ssh_keys
build_and_push_image # remove for microservices build_and_push_image # remove for microservices
up_master up_master
up_workers #up_workers
prompt_ready prompt_ready
show_instruction show_instruction
@ -677,7 +677,7 @@ elif [ $COMMAND_SCALE -eq 1 ]; then
down_master down_master
down_workers down_workers
up_master up_master
up_workers #up_workers
prompt_ready prompt_ready
show_instruction show_instruction
@ -688,7 +688,7 @@ elif [ $COMMAND_RELOAD -eq 1 ]; then
down_workers down_workers
build_and_push_image build_and_push_image
up_master up_master
up_workers #up_workers
prompt_ready prompt_ready
show_instruction show_instruction

Loading…
Cancel
Save