66fc046091
* Remove out of place wait_online test param * Cfgsync crate for testnet startup * Config dispersal to node hosts * Remove etcd dep and obsolete bash scripts * Kzgrs test params in testnet * Nodes listen on all interfaces
169 lines
4.7 KiB
YAML
169 lines
4.7 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
cfgsync:
|
|
container_name: cfgsync
|
|
build:
|
|
context: .
|
|
dockerfile: testnet/Dockerfile
|
|
image: nomos:latest
|
|
volumes:
|
|
- ./testnet:/etc/nomos
|
|
entrypoint: /etc/nomos/scripts/run_cfgsync.sh
|
|
|
|
nomos-node-0:
|
|
container_name: nomos_node_0
|
|
build:
|
|
context: .
|
|
dockerfile: testnet/Dockerfile
|
|
image: nomos:latest
|
|
ports:
|
|
- "3000:3000/udp"
|
|
- "18080:18080/tcp"
|
|
volumes:
|
|
- ./testnet:/etc/nomos
|
|
- ./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z
|
|
depends_on:
|
|
- cfgsync
|
|
- graylog
|
|
entrypoint: /etc/nomos/scripts/run_nomos_node.sh
|
|
|
|
nomos-node-1:
|
|
container_name: nomos_node_1
|
|
build:
|
|
context: .
|
|
dockerfile: testnet/Dockerfile
|
|
image: nomos:latest
|
|
volumes:
|
|
- ./testnet:/etc/nomos
|
|
- ./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z
|
|
depends_on:
|
|
- cfgsync
|
|
- graylog
|
|
ports:
|
|
- "3001:3000/udp"
|
|
- "18081:18080/tcp"
|
|
entrypoint: /etc/nomos/scripts/run_nomos_node.sh
|
|
|
|
nomos-node-2:
|
|
container_name: nomos_node_2
|
|
build:
|
|
context: .
|
|
dockerfile: testnet/Dockerfile
|
|
image: nomos:latest
|
|
volumes:
|
|
- ./testnet:/etc/nomos
|
|
- ./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z
|
|
depends_on:
|
|
- cfgsync
|
|
- graylog
|
|
ports:
|
|
- "3002:3000/udp"
|
|
- "18082:18080/tcp"
|
|
entrypoint: /etc/nomos/scripts/run_nomos_node.sh
|
|
|
|
nomos-node-3:
|
|
container_name: nomos_node_3
|
|
build:
|
|
context: .
|
|
dockerfile: testnet/Dockerfile
|
|
image: nomos:latest
|
|
volumes:
|
|
- ./testnet:/etc/nomos
|
|
- ./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z
|
|
depends_on:
|
|
- cfgsync
|
|
- graylog
|
|
ports:
|
|
- "3003:3000/udp"
|
|
- "18083:18080/tcp"
|
|
entrypoint: /etc/nomos/scripts/run_nomos_node.sh
|
|
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: prom/prometheus:latest
|
|
volumes:
|
|
- ./testnet/monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:z
|
|
command:
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
- --storage.tsdb.retention.time=7d
|
|
ports:
|
|
- 127.0.0.1:9090:9090
|
|
restart: on-failure
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana:latest
|
|
env_file:
|
|
- ./testnet/monitoring/grafana/plugins.env
|
|
volumes:
|
|
- ./testnet/monitoring/grafana/grafana.ini:/etc/grafana/grafana.ini:z
|
|
- ./testnet/monitoring/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:z
|
|
ports:
|
|
- 9091:3000
|
|
restart: on-failure
|
|
depends_on:
|
|
- prometheus
|
|
|
|
# Graylog related configuration
|
|
# More information at https://github.com/Graylog2/docker-compose/blob/main/open-core/docker-compose.yml
|
|
mongodb:
|
|
image: "mongo:5.0"
|
|
volumes:
|
|
- "mongodb_data:/data/db"
|
|
restart: "on-failure"
|
|
|
|
datanode:
|
|
image: "${DATANODE_IMAGE:-graylog/graylog-datanode:5.2}"
|
|
hostname: "datanode"
|
|
environment:
|
|
GRAYLOG_DATANODE_NODE_ID_FILE: "/var/lib/graylog-datanode/node-id"
|
|
GRAYLOG_DATANODE_PASSWORD_SECRET: "${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}"
|
|
GRAYLOG_DATANODE_ROOT_PASSWORD_SHA2: "${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}"
|
|
GRAYLOG_DATANODE_MONGODB_URI: "mongodb://mongodb:27017/graylog"
|
|
ulimits:
|
|
memlock:
|
|
hard: -1
|
|
soft: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
ports:
|
|
- "8999:8999/tcp" # DataNode API
|
|
- "9200:9200/tcp"
|
|
- "9300:9300/tcp"
|
|
volumes:
|
|
- "graylog-datanode:/var/lib/graylog-datanode"
|
|
restart: "on-failure"
|
|
|
|
graylog:
|
|
image: "${GRAYLOG_IMAGE:-graylog/graylog:5.2}"
|
|
depends_on:
|
|
mongodb:
|
|
condition: "service_started"
|
|
entrypoint: "/usr/bin/tini -- /docker-entrypoint.sh"
|
|
environment:
|
|
GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/data/node-id"
|
|
GRAYLOG_PASSWORD_SECRET: "${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}"
|
|
GRAYLOG_ROOT_PASSWORD_SHA2: "${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}"
|
|
GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9000"
|
|
GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9000/"
|
|
GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog"
|
|
ports:
|
|
- "9000:9000/tcp" # Server API
|
|
- "12201:12201/tcp" # GELF TCP
|
|
- "12201:12201/udp" # GELF UDP
|
|
volumes:
|
|
- "graylog_data:/usr/share/graylog/data/data"
|
|
- "graylog_journal:/usr/share/graylog/data/journal"
|
|
- ./testnet/monitoring/graylog.conf:/usr/share/graylog/data/config/graylog.conf
|
|
restart: "on-failure"
|
|
|
|
|
|
volumes:
|
|
mongodb_data:
|
|
graylog-datanode:
|
|
graylog_data:
|
|
graylog_journal:
|