docker-compose.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # format 3.x, validated on W10 - there is no "mode/uid/gid" for docker-compose 1.29/W10
  2. # you should provide your private/public RSA key in ./ssh dir (named id_rsa.mpi/id_rsa.mpi.pub)
  3. # docker swarm init, then you have to do // note version_mpinet is the name of the overlay
  4. # docker network create --driver=overlay --attachable yml_mpinet
  5. # with xmp and telegraf
  6. # Dec, 12, 2022 - Jean-Michel Batto
  7. version: "3.9"
  8. services:
  9. grafana:
  10. container_name: influxdb_local
  11. image: philhawthorne/docker-influxdb-grafana:latest
  12. volumes:
  13. - /var/run/docker.sock:/var/run/docker.sock
  14. - usrlocalinfluxdb-foo:/var/lib/influxdb
  15. - usrlocalgrafana-foo:/var/lib/grafana
  16. ports:
  17. - "3003:3003"
  18. - "3004:8083"
  19. - "8086:8086"
  20. networks:
  21. - mpinet
  22. mpihead:
  23. image: jmbatto/m2chps-mpi41-xmp:latest
  24. volumes:
  25. - /var/run/docker.sock:/var/run/docker.sock
  26. - usrlocalvarmpi-foo:/usr/local/var/mpishare
  27. shm_size: '512m'
  28. ports:
  29. - "2022:22"
  30. links:
  31. - mpinode
  32. networks:
  33. - mpinet
  34. secrets:
  35. - source: "id_rsa"
  36. target: "/home/mpiuser/.ssh-source/id_rsa"
  37. - source: "id_rsa_mpi_pub"
  38. target: "/home/mpiuser/.ssh-source/id_rsa.pub"
  39. - source: "authorized_keys"
  40. target: "/home/mpiuser/.ssh-source/authorized_keys"
  41. depends_on:
  42. - grafana
  43. mpinode:
  44. image: jmbatto/m2chps-mpi41-xmp:latest
  45. volumes:
  46. - /var/run/docker.sock:/var/run/docker.sock
  47. - usrlocalvarmpi-foo:/usr/local/var/mpishare
  48. shm_size: '512m'
  49. networks:
  50. - mpinet
  51. secrets:
  52. - source: "id_rsa"
  53. target: "/home/mpiuser/.ssh-source/id_rsa"
  54. - source: "id_rsa_mpi_pub"
  55. target: "/home/mpiuser/.ssh-source/id_rsa.pub"
  56. - source: "authorized_keys"
  57. target: "/home/mpiuser/.ssh-source/authorized_keys"
  58. depends_on:
  59. - grafana
  60. secrets:
  61. id_rsa_mpi_pub:
  62. file: ssh/id_rsa.mpi.pub
  63. id_rsa:
  64. file: ssh/id_rsa.mpi
  65. authorized_keys:
  66. file: ssh/id_rsa.mpi.pub
  67. networks:
  68. mpinet:
  69. external: true
  70. name : yml_mpinet
  71. driver: overlay
  72. volumes:
  73. usrlocalvarmpi-foo:
  74. usrlocalgrafana-foo:
  75. usrlocalinfluxdb-foo: