Docker configure
This commit is contained in:
86
docker/docker-compose.yml
Normal file
86
docker/docker-compose.yml
Normal file
@@ -0,0 +1,86 @@
|
||||
version: '3.8'
|
||||
|
||||
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
|
||||
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
|
||||
- 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
|
||||
- JOIN_NODES=eventhub-node1@eventhub-node1
|
||||
volumes:
|
||||
- eventhub-node3-data:/app/data
|
||||
networks:
|
||||
- eventhub-net
|
||||
depends_on:
|
||||
- eventhub-node1
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
eventhub-node1-data:
|
||||
eventhub-node2-data:
|
||||
eventhub-node3-data:
|
||||
|
||||
networks:
|
||||
eventhub-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user