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
779 B
37 lines
779 B
version: "2"
|
|
|
|
services:
|
|
registry:
|
|
image: registry
|
|
ports:
|
|
- "5000:5000"
|
|
|
|
master:
|
|
image: localhost:5000/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:
|
|
- "2222:22"
|
|
networks:
|
|
- net
|
|
volumes:
|
|
- /home/zoiros13/swarmlab-sec/test/project:/project
|
|
|
|
|
|
worker:
|
|
image: localhost:5000/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:
|
|
- net
|
|
volumes:
|
|
- /home/zoiros13/swarmlab-sec/test/project:/project
|
|
|
|
networks:
|
|
net:
|
|
|