cc-docker/docker-compose.yml

146 lines
3.9 KiB
YAML
Raw Normal View History

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:
2025-01-29 23:29:41 +01:00
- "0.0.0.0:4222:4222"
- "0.0.0.0:8222:8222"
- "0.0.0.0:6222:6222"
volumes:
- ${DATADIR}/nats:/data
entrypoint: ["/bin/sh", "/data/docker-entrypoint.sh"]
2023-06-23 06:32:23 +02:00
cc-metric-store:
container_name: cc-metric-store
build:
context: ./cc-metric-store
ports:
2025-01-29 23:29:41 +01:00
- "0.0.0.0:8084:8084"
2023-06-23 06:32:23 +02:00
volumes:
- ${DATADIR}/cc-metric-store:/data
depends_on:
- nats
influxdb:
2023-07-11 08:39:21 +02:00
container_name: influxdb
2024-10-10 23:56:44 +02:00
image: influxdb:latest
command: ["--reporting-disabled", "--log-level=debug"]
2023-06-23 06:32:23 +02:00
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:
2025-01-29 23:29:41 +01:00
- "0.0.0.0:8086:8086"
2023-06-23 06:32:23 +02:00
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:
2025-01-28 21:54:48 +01:00
- LDAP_ADMIN_PASSWORD=mashup
- LDAP_ORGANISATION=Example Organization
- LDAP_DOMAIN=example.com
- LDAP_LOGGING=true
- LDAP_CONNECTION=default
- LDAP_CONNECTIONS=default
- LDAP_DEFAULT_HOSTS=0.0.0.0
ports:
- "0.0.0.0:389:389"
2023-06-23 06:32:23 +02:00
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:
2025-01-28 21:54:48 +01:00
MARIADB_ROOT_PASSWORD: root
2023-08-21 09:57:51 +02:00
MARIADB_DATABASE: slurm_acct_db
MARIADB_USER: slurm
MARIADB_PASSWORD: demo
2023-06-23 06:32:23 +02:00
ports:
2025-01-29 23:29:41 +01:00
- "0.0.0.0:3306:3306"
2023-08-21 09:57:51 +02:00
volumes:
2025-01-28 21:54:48 +01:00
- ${DATADIR}/mariadb:/docker-entrypoint-initdb.d
2023-06-23 06:32:23 +02:00
cap_add:
- SYS_NICE
2024-10-11 16:39:38 +02:00
slurmctld:
2023-07-11 08:39:21 +02:00
container_name: slurmctld
2023-08-21 09:57:51 +02:00
hostname: slurmctld
2023-06-23 08:38:15 +02:00
build:
context: ./slurm/controller
privileged: true
volumes:
2023-08-21 09:57:51 +02:00
- ${DATADIR}/slurm/home:/home
- ${DATADIR}/slurm/secret:/.secret
2024-10-11 16:39:38 +02:00
- ./slurm/controller/slurm.conf:/home/config/slurm.conf
2024-10-15 16:15:37 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2024-10-15 17:02:25 +02:00
- ${DATADIR}/slurm/state:/var/lib/slurm/d
ports:
- "6817:6817"
2023-06-23 08:38:15 +02:00
2024-10-11 16:39:38 +02:00
slurmdbd:
container_name: slurmdbd
hostname: slurmdbd
2023-06-23 08:38:15 +02:00
build:
context: ./slurm/database
depends_on:
2023-08-21 09:57:51 +02:00
- mariadb
2024-10-15 16:15:37 +02:00
- slurmctld
2023-06-23 08:38:15 +02:00
privileged: true
volumes:
2023-08-21 09:57:51 +02:00
- ${DATADIR}/slurm/home:/home
- ${DATADIR}/slurm/secret:/.secret
2024-10-11 16:39:38 +02:00
- ./slurm/database/slurmdbd.conf:/home/config/slurmdbd.conf
2024-10-15 16:15:37 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "6819:6819"
2023-06-23 08:38:15 +02:00
2024-10-11 16:39:38 +02:00
node01:
2023-07-11 08:39:21 +02:00
container_name: node01
2023-08-21 09:57:51 +02:00
hostname: node01
2023-07-11 08:39:21 +02:00
build:
context: ./slurm/worker
depends_on:
2024-10-11 16:39:38 +02:00
- slurmctld
2023-07-11 08:39:21 +02:00
privileged: true
volumes:
2023-08-21 09:57:51 +02:00
- ${DATADIR}/slurm/home:/home
- ${DATADIR}/slurm/secret:/.secret
2024-10-14 23:00:44 +02:00
- ./slurm/worker/cgroup.conf:/home/config/cgroup.conf
- ./slurm/controller/slurm.conf:/home/config/slurm.conf
2024-10-15 16:15:37 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2024-10-11 16:39:38 +02:00
ports:
- "6818:6818"
slurmrestd:
container_name: slurmrestd
hostname: slurmrestd
build:
context: ./slurm/rest
environment:
- SLURM_JWT=daemon
- SLURMRESTD_DEBUG=9
depends_on:
- slurmctld
privileged: true
volumes:
- ${DATADIR}/slurm/home:/home
- ${DATADIR}/slurm/secret:/.secret
- ./slurm/controller/slurm.conf:/home/config/slurm.conf
- ./slurm/rest/slurmrestd.conf:/home/config/slurmrestd.conf
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "6820:6820"