From 1b52fff21b9af205f12a33994b6f783fe04401e3 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 15 May 2021 02:54:37 +0300 Subject: [PATCH] add jupyter --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index bb826bc..b9de14c 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -272,6 +272,21 @@ services: - $Wdir/project:/home/docker/project - /tmp/work:/tmp/work + 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"] + networks: + - ${HYBRID_NETWORK} + volumes: + - $Wdir/project:/home/docker/project networks: ${HYBRID_NETWORK}: