You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
905 B

version: "2"
services:
registry:
image: registry
ports:
- "5000:5000"
master:
image: localhost:5000/swarmlab-sec
privileged: true
cap_add:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrap", "role=master", "sec_master_service_name=master", "sec_worker_service_name=worker"]
ports:
- "${SSH_PORT}:22"
networks:
- hybrid-sec
volumes:
- /data/appl/ok/swarmlab-hybrid-agent/src-local/instance/swarmlab-sec/test/project:/project
worker:
image: localhost:5000/swarmlab-sec
privileged: true
cap_add:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrap", "role=worker", "sec_master_service_name=master", "sec_worker_service_name=worker"]
networks:
- hybrid-sec
volumes:
- /data/appl/ok/swarmlab-hybrid-agent/src-local/instance/swarmlab-sec/test/project:/project
networks:
hybrid-sec: