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.

60 lines
1.8 KiB

4 years ago
version: "3.8"
services:
swarmlabclient:
4 years ago
image: hub.swarmlab.io:5480/playground-hybrid-agent:latest
4 years ago
user: root
4 years ago
privileged: true
container_name: swarmlab-hybrid-agent
#entrypoint: ["mpi_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"]
4 years ago
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
#constraints:
#- node.id==${noderead}
#- node.labels.region==okeanos
resources:
limits:
cpus: '0.50'
memory: 250M
reservations:
4 years ago
cpus: '0.50'
memory: 250M
4 years ago
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 120s
update_config:
parallelism: 2
delay: 10s
order: stop-first
ports:
4 years ago
- "3088:80"
4 years ago
#- "3000:3000"
4 years ago
networks:
hybrid-net:
volumes:
4 years ago
#- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
4 years ago
- ${nodepath}/ecosystem.config.js:/home/node/swarmlab-app/ecosystem.config.js
- ${nodepath}/dist:/home/node/swarmlab-app/dist
4 years ago
- ${nodepath}/src-local:/home/node/swarmlab-app/dist/src-local
4 years ago
#- ${nodepath}/src-local/llo/new.js:/home/node/server/llo/new.js
4 years ago
#- ${nodepath}/src-local/llo:/home/node/server/llo
4 years ago
#- ${nodepath}/hybrid/swarmlab-sec:/home/node/server/hybrid
4 years ago
# proxy
- ${nodepath}/nginx/swarmlab-stats-proxy-server.conf:/etc/nginx/conf.d/default.conf
- ${nodepath}/keys/swarmlab.crt:/etc/nginx/swarmlab.crt
- ${nodepath}/keys/swarmlab.key:/etc/nginx/swarmlab.key
4 years ago
#command: [nginx-debug, '-g', 'daemon off;']
4 years ago
networks:
hybrid-net: