134 lines
3.0 KiB
YAML
134 lines
3.0 KiB
YAML
services:
|
|
eventhub-node1:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
container_name: eventhub-node1
|
|
ports:
|
|
- "8080:8080"
|
|
- "8081:8081"
|
|
- "8445:8445"
|
|
- "8446:8446"
|
|
environment:
|
|
- NODE_NAME=eventhub-node1@eventhub-node1
|
|
- HTTP_PORT=8080
|
|
- WS_PORT=8081
|
|
- ADMIN_HTTP_PORT=8445
|
|
- ADMIN_WS_PORT=8446
|
|
- MNESIA_DIR=/app/data
|
|
- RELEASE_COOKIE=eventhub_cookie
|
|
volumes:
|
|
- eventhub-node1-data:/app/data
|
|
networks:
|
|
- eventhub-net
|
|
restart: unless-stopped
|
|
|
|
eventhub-node2:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
container_name: eventhub-node2
|
|
ports:
|
|
- "8082:8080"
|
|
- "8083:8081"
|
|
- "8447:8445"
|
|
- "8448:8446"
|
|
environment:
|
|
- NODE_NAME=eventhub-node2@eventhub-node2
|
|
- HTTP_PORT=8080
|
|
- WS_PORT=8081
|
|
- ADMIN_HTTP_PORT=8445
|
|
- ADMIN_WS_PORT=8446
|
|
- MNESIA_DIR=/app/data
|
|
- RELEASE_COOKIE=eventhub_cookie
|
|
- JOIN_NODES=eventhub-node1@eventhub-node1
|
|
volumes:
|
|
- eventhub-node2-data:/app/data
|
|
networks:
|
|
- eventhub-net
|
|
depends_on:
|
|
- eventhub-node1
|
|
restart: unless-stopped
|
|
|
|
eventhub-node3:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
container_name: eventhub-node3
|
|
ports:
|
|
- "8084:8080"
|
|
- "8085:8081"
|
|
- "8449:8445"
|
|
- "8450:8446"
|
|
environment:
|
|
- NODE_NAME=eventhub-node3@eventhub-node3
|
|
- HTTP_PORT=8080
|
|
- WS_PORT=8081
|
|
- ADMIN_HTTP_PORT=8445
|
|
- ADMIN_WS_PORT=8446
|
|
- MNESIA_DIR=/app/data
|
|
- RELEASE_COOKIE=eventhub_cookie
|
|
- JOIN_NODES=eventhub-node1@eventhub-node1
|
|
volumes:
|
|
- eventhub-node3-data:/app/data
|
|
networks:
|
|
- eventhub-net
|
|
depends_on:
|
|
- eventhub-node1
|
|
restart: unless-stopped
|
|
|
|
observer_web:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/ObserverWeb.Dockerfile
|
|
container_name: observer_web
|
|
ports:
|
|
- "4000:4000"
|
|
environment:
|
|
- RELEASE_COOKIE=eventhub_cookie
|
|
networks:
|
|
- eventhub-net
|
|
restart: unless-stopped
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- prometheus-data:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
ports:
|
|
- "9090:9090"
|
|
networks:
|
|
- eventhub-net
|
|
restart: unless-stopped
|
|
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
container_name: grafana
|
|
depends_on:
|
|
- prometheus
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=zxs45gvHB
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
- ./grafana/provisioning:/etc/grafana/provisioning
|
|
networks:
|
|
- eventhub-net
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
eventhub-node1-data:
|
|
eventhub-node2-data:
|
|
eventhub-node3-data:
|
|
prometheus-data:
|
|
grafana-data:
|
|
|
|
networks:
|
|
eventhub-net:
|
|
driver: bridge |