-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.25 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Brings up the full lab-watcher stack:
# 1. engine-builder produces libvalengine.so into a shared volume
# 2. cli runs the Java watcher daemon, loading the native lib
# 3. dashboard reads the same SQLite db and serves the web UI on :3000
#
# Drop CSV files into ./sample-data and watch them flow through.
services:
engine-builder:
build:
context: ./engine
dockerfile: Dockerfile
target: builder
command: ["sh", "-c", "cp /src/build/libvalengine.so /native/ && tail -f /dev/null"]
volumes:
- native-libs:/native
cli:
build:
context: ./cli
depends_on:
- engine-builder
environment:
LABWATCHER_NOTION_TOKEN: ${LABWATCHER_NOTION_TOKEN:-}
LABWATCHER_NOTION_DB_ID: ${LABWATCHER_NOTION_DB_ID:-}
LABWATCHER_SLACK_WEBHOOK: ${LABWATCHER_SLACK_WEBHOOK:-}
volumes:
- native-libs:/native:ro
- ./sample-data:/data:ro
- ./schemas:/schemas:ro
- state-db:/state
- ./docker/lab-watcher.toml:/app/lab-watcher.toml:ro
dashboard:
build:
context: ./dashboard
depends_on:
- cli
ports:
- "3000:3000"
environment:
DB_PATH: /state/lab-watcher.db
PORT: "3000"
volumes:
- state-db:/state:ro
volumes:
native-libs:
state-db: