-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.control.yml
More file actions
33 lines (31 loc) · 1.08 KB
/
docker-compose.control.yml
File metadata and controls
33 lines (31 loc) · 1.08 KB
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
# Bring up the demo control plane: control (gRPC) + ui (nginx).
#
# docker compose -f docker-compose.control.yml up
#
# Then open http://localhost:8080 in the browser.
#
# Images are pulled from Docker Hub. To run against local source instead,
# build the images first with the published tags:
#
# docker build -t tislib/roda-ledger:control-latest -f control.Dockerfile .
# docker build -t tislib/roda-ledger:ui-latest -f ui/Dockerfile .
services:
control:
image: tislib/roda-ledger:control-latest
ports:
- "50051:50051"
environment:
RODA_CONTROL_ADDR: "0.0.0.0:50051"
INITIAL_NODE_COUNT: "3"
ui:
image: tislib/roda-ledger:ui-latest
ports:
- "8080:8080"
environment:
# Browser-reachable URL for control's gRPC. The browser runs on
# the host, so it talks to control via the published port — not
# via the docker network. Override when reaching the demo over a
# network (e.g. CONTROL_PLANE_URL=http://demo.example.com:50051).
CONTROL_PLANE_URL: "http://localhost:50051"
depends_on:
- control