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.8KB

  1. version: "3.8"
  2. services:
  3. swarmlabclient:
  4. image: hub.swarmlab.io:5480/playground-hybrid-agent:latest
  5. user: root
  6. privileged: true
  7. container_name: swarmlab-hybrid-agent
  8. #entrypoint: ["mpi_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"]
  9. environment:
  10. - NODENAME={{.Node.Hostname}}
  11. - NODEID={{.Node.ID}}
  12. deploy:
  13. replicas: 1
  14. placement:
  15. max_replicas_per_node: 1
  16. #constraints:
  17. #- node.id==${noderead}
  18. #- node.labels.region==okeanos
  19. resources:
  20. limits:
  21. cpus: '0.50'
  22. memory: 250M
  23. reservations:
  24. cpus: '0.50'
  25. memory: 250M
  26. restart_policy:
  27. condition: on-failure
  28. delay: 5s
  29. max_attempts: 5
  30. window: 120s
  31. update_config:
  32. parallelism: 2
  33. delay: 10s
  34. order: stop-first
  35. ports:
  36. - "3088:80"
  37. #- "3000:3000"
  38. networks:
  39. hybrid-net:
  40. volumes:
  41. #- /var/run/docker.sock:/var/run/docker.sock
  42. - /etc/localtime:/etc/localtime:ro
  43. - ${nodepath}/ecosystem.config.js:/home/node/swarmlab-app/ecosystem.config.js
  44. - ${nodepath}/dist:/home/node/swarmlab-app/dist
  45. - ${nodepath}/src-local:/home/node/swarmlab-app/dist/src-local
  46. #- ${nodepath}/src-local/llo/new.js:/home/node/server/llo/new.js
  47. #- ${nodepath}/src-local/llo:/home/node/server/llo
  48. #- ${nodepath}/hybrid/swarmlab-sec:/home/node/server/hybrid
  49. # proxy
  50. - ${nodepath}/nginx/swarmlab-stats-proxy-server.conf:/etc/nginx/conf.d/default.conf
  51. - ${nodepath}/keys/swarmlab.crt:/etc/nginx/swarmlab.crt
  52. - ${nodepath}/keys/swarmlab.key:/etc/nginx/swarmlab.key
  53. #command: [nginx-debug, '-g', 'daemon off;']
  54. networks:
  55. hybrid-net: