version: "3.8" services: swarmlabclient: image: hub.swarmlab.io:5443/playground-hybrid-agent:latest user: root privileged: true container_name: swarmlab-hybrid-agent #entrypoint: ["mpi_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"] 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: cpus: '1' memory: 750M restart_policy: condition: on-failure delay: 5s max_attempts: 5 window: 120s update_config: parallelism: 2 delay: 10s order: stop-first ports: - "3088:80" #- "3000:3000" networks: hybrid-net: volumes: #- /var/run/docker.sock:/var/run/docker.sock - /etc/localtime:/etc/localtime:ro - ${nodepath}/ecosystem.config.js:/home/node/swarmlab-app/ecosystem.config.js - ${nodepath}/dist:/home/node/swarmlab-app/dist - ${nodepath}/src-local:/home/node/swarmlab-app/dist/src-local #- ${nodepath}/src-local/llo/new.js:/home/node/server/llo/new.js #- ${nodepath}/src-local/llo:/home/node/server/llo #- ${nodepath}/hybrid/swarmlab-sec:/home/node/server/hybrid # 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 #command: [nginx-debug, '-g', 'daemon off;'] networks: hybrid-net: