File size: 937 Bytes
b00c961 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | version: '3.8'
services:
router:
build:
context: .
dockerfile: Dockerfile.router
ports:
- "8000:8000"
environment:
- SHARD_URLS=http://shard_science:8001,http://shard_history:8001,http://shard_coding:8001
depends_on:
- shard_science
- shard_history
- shard_coding
shard_science:
build:
context: .
dockerfile: Dockerfile.shard
environment:
- SHARD_ID=Science_Node
- SHARD_TOPIC=Science
- PORT=8001
ports:
- "8001:8001"
shard_history:
build:
context: .
dockerfile: Dockerfile.shard
environment:
- SHARD_ID=History_Node
- SHARD_TOPIC=History
- PORT=8001
ports:
- "8002:8001"
shard_coding:
build:
context: .
dockerfile: Dockerfile.shard
environment:
- SHARD_ID=Coding_Node
- SHARD_TOPIC=Coding
- PORT=8001
ports:
- "8003:8001"
|