123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- # docker swarm init, then you have to do // note version_mpinet is the name of the overlay
- # docker network create --driver=overlay --attachable yml_mpinet
- # Jan, 17, 2025 - Jean-Michel Batto
- services:
- mysql:
- image: mariadb:10.10
- hostname: mysql
- container_name: mysql
- environment:
- MARIADB_ROOT_PASSWORD: password
- MARIADB_DATABASE: slurm_acct_db
- MARIADB_USER: slurm
- MARIADB_PASSWORD: password
- volumes:
- - var_lib_mysql:/var/lib/mysql
- ports:
- - "3306:3306"
- networks:
- - mpinet
- slurmdbd:
- image: jmbatto/m2chps-slurm-cluster:latest
- command: ["slurmdbd"]
- container_name: slurmdbd
- hostname: slurmdbd
- volumes:
- - etc_munge:/etc/munge
- # - etc_slurm:/etc/slurm
- - var_log_slurm:/var/log/slurm
- expose:
- - "6819"
- depends_on:
- - mysql
- shm_size: '512m'
- networks:
- - mpinet
- slurmctld:
- image: jmbatto/m2chps-slurm-cluster:latest
- command: ["slurmctld"]
- container_name: slurmctld
- hostname: slurmctld
- volumes:
- - etc_munge:/etc/munge
- # - etc_slurm:/etc/slurm
- - slurm_jobdir:/data
- - var_log_slurm:/var/log/slurm
- - usrlocalvarmpi-foo:/usr/local/var/mpishare
- expose:
- - "6817"
- depends_on:
- - "slurmdbd"
- shm_size: '512m'
- networks:
- - mpinet
- c1:
- image: jmbatto/m2chps-slurm-cluster:latest
- command: ["slurmd"]
- hostname: c1
- container_name: c1
- volumes:
- - etc_munge:/etc/munge
- # - etc_slurm:/etc/slurm
- - slurm_jobdir:/data
- - var_log_slurm:/var/log/slurm
- - usrlocalvarmpi-foo:/usr/local/var/mpishare
- expose:
- - "6818"
- depends_on:
- - "slurmctld"
- shm_size: '512m'
- networks:
- - mpinet
- c2:
- image: jmbatto/m2chps-slurm-cluster:latest
- command: ["slurmd"]
- hostname: c2
- container_name: c2
- volumes:
- - etc_munge:/etc/munge
- # - etc_slurm:/etc/slurm
- - slurm_jobdir:/data
- - var_log_slurm:/var/log/slurm
- - usrlocalvarmpi-foo:/usr/local/var/mpishare
- expose:
- - "6818"
- depends_on:
- - "slurmctld"
- shm_size: '512m'
- networks:
- - mpinet
-
- networks:
- mpinet:
- external: true
- name : yml_mpinet
- driver: overlay
- volumes:
- etc_munge:
- # etc_slurm:
- slurm_jobdir:
- var_lib_mysql:
- var_log_slurm:
- usrlocalvarmpi-foo:
|