2023-06-23 06:32:23 +02:00
|
|
|
services:
|
|
|
|
nats:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: nats
|
2023-06-23 06:32:23 +02:00
|
|
|
image: nats:alpine
|
|
|
|
ports:
|
|
|
|
- "4222:4222"
|
|
|
|
- "8222:8222"
|
|
|
|
|
|
|
|
cc-metric-store:
|
|
|
|
container_name: cc-metric-store
|
|
|
|
build:
|
|
|
|
context: ./cc-metric-store
|
|
|
|
ports:
|
|
|
|
- "8084:8084"
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/cc-metric-store:/data
|
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
|
|
|
|
influxdb:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: influxdb
|
2023-06-23 06:32:23 +02:00
|
|
|
image: influxdb
|
|
|
|
command: ["--reporting-disabled"]
|
|
|
|
environment:
|
|
|
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
|
|
|
DOCKER_INFLUXDB_INIT_USERNAME: devel
|
|
|
|
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD}
|
|
|
|
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_ORG}
|
|
|
|
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_BUCKET}
|
|
|
|
DOCKER_INFLUXDB_INIT_RETENTION: 100w
|
|
|
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${INFLUXDB_PORT}:8086"
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/influxdb/data:/var/lib/influxdb2
|
|
|
|
- ${DATADIR}/influxdb/config:/etc/influxdb2
|
|
|
|
|
|
|
|
openldap:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: ldap
|
2023-06-23 06:32:23 +02:00
|
|
|
image: osixia/openldap:1.5.0
|
|
|
|
command: --copy-service --loglevel debug
|
|
|
|
environment:
|
|
|
|
- LDAP_ADMIN_PASSWORD=${LDAP_ADMIN_PASSWORD}
|
|
|
|
- LDAP_ORGANISATION=${LDAP_ORGANISATION}
|
|
|
|
- LDAP_DOMAIN=${LDAP_DOMAIN}
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
|
|
|
|
|
|
|
|
mariadb:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: mariadb
|
2023-06-23 06:32:23 +02:00
|
|
|
image: mariadb:latest
|
|
|
|
command: ["--default-authentication-plugin=mysql_native_password"]
|
|
|
|
environment:
|
|
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${MARIADB_PORT}:3306"
|
|
|
|
# volumes:
|
|
|
|
# - ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
|
|
|
|
2023-06-23 08:38:15 +02:00
|
|
|
# mysql:
|
2023-07-11 08:39:21 +02:00
|
|
|
# container_name: mysql
|
2023-06-23 08:38:15 +02:00
|
|
|
# image: mysql:8.0.22
|
|
|
|
# command: ["--default-authentication-plugin=mysql_native_password"]
|
|
|
|
# environment:
|
|
|
|
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
|
|
# MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
|
|
# MYSQL_USER: ${MYSQL_USER}
|
|
|
|
# MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
# ports:
|
|
|
|
# - "127.0.0.1:${MYSQL_PORT}:3306"
|
|
|
|
# # volumes:
|
|
|
|
# # - ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
|
|
|
# # - ${DATADIR}/sqldata:/var/lib/mysql
|
|
|
|
# cap_add:
|
|
|
|
# - SYS_NICE
|
2023-06-23 06:32:23 +02:00
|
|
|
|
2023-06-23 08:38:15 +02:00
|
|
|
slurm-controller:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: slurmctld
|
2023-06-23 08:38:15 +02:00
|
|
|
build:
|
|
|
|
context: ./slurm/controller
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- ./home:/home
|
|
|
|
- ./secret:/.secret
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
USE_SLURMDBD: 'true'
|
|
|
|
CLUSTER_NAME: snowflake
|
|
|
|
CONTROL_MACHINE: controller
|
|
|
|
SLURMCTLD_PORT: 6817
|
|
|
|
SLURMD_PORT: 6818
|
|
|
|
ACCOUNTING_STORAGE_HOST: database
|
|
|
|
ACCOUNTING_STORAGE_PORT: 6819
|
|
|
|
COMPUTE_NODES: worker01 worker02
|
|
|
|
PARTITION_NAME: docker
|
|
|
|
|
|
|
|
slurm-database:
|
2023-07-11 08:39:21 +02:00
|
|
|
container_name: slurmdb
|
2023-06-23 08:38:15 +02:00
|
|
|
build:
|
|
|
|
context: ./slurm/database
|
|
|
|
depends_on:
|
|
|
|
- slurm-controller
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- ./home:/home
|
|
|
|
- ./secret:/.secret
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
DBD_ADDR: database
|
|
|
|
DBD_HOST: database
|
|
|
|
DBD_PORT: 6819
|
|
|
|
STORAGE_HOST: database.local.dev
|
|
|
|
STORAGE_PORT: 3306
|
|
|
|
STORAGE_PASS: password
|
|
|
|
STORAGE_USER: slurm
|
|
|
|
|
2023-07-11 08:39:21 +02:00
|
|
|
slurm-worker01:
|
|
|
|
container_name: node01
|
|
|
|
build:
|
|
|
|
context: ./slurm/worker
|
|
|
|
depends_on:
|
|
|
|
- slurm-controller
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- ./home:/home
|
|
|
|
- ./secret:/.secret
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
CONTROL_MACHINE: controller
|
|
|
|
ACCOUNTING_STORAGE_HOST: database
|
|
|
|
COMPUTE_NODES: worker01 worker02
|
2023-06-23 08:38:15 +02:00
|
|
|
|
2023-07-10 16:48:51 +02:00
|
|
|
# slurm-worker02:
|
|
|
|
# container_name: slurm-worker02
|
|
|
|
# build:
|
|
|
|
# context: ./slurm/worker
|
|
|
|
# depends_on:
|
|
|
|
# - slurm-controller
|
|
|
|
# privileged: true
|
|
|
|
# volumes:
|
|
|
|
# - ./home:/home
|
|
|
|
# - ./secret:/.secret
|
|
|
|
# restart: always
|
|
|
|
# environment:
|
|
|
|
# CONTROL_MACHINE: controller
|
|
|
|
# ACCOUNTING_STORAGE_HOST: database
|
|
|
|
# COMPUTE_NODES: worker01 worker02
|