forked from Akmot9/Packet-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.36 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
postgres:
image: postgres:16
container_name: bench_pg
environment:
POSTGRES_DB: benchdb
POSTGRES_USER: bench
POSTGRES_PASSWORD: benchpass
ports:
- "5432:5432"
volumes:
- bench_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bench -d benchdb -h 127.0.0.1"]
interval: 3s
timeout: 3s
retries: 30
restart: unless-stopped
networks:
- bench_net
grafana:
image: grafana/grafana:latest
container_name: bench_grafana
depends_on:
postgres:
condition: service_healthy
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
restart: unless-stopped
networks:
- bench_net
ingestor:
build:
context: ./ingestor
dockerfile: Dockerfile
container_name: bench_ingestor
depends_on:
postgres:
condition: service_healthy
environment:
PG_HOST: postgres
PG_PORT: "5432"
PG_DB: benchdb
PG_USER: bench
PG_PASSWORD: benchpass
JSONL_DIR: /data/jsonl
SCAN_INTERVAL_MS: "500"
BATCH_SIZE: "1000"
volumes:
- ${HOME}/.local/share/packet_parser_bench/jsonl:/data/jsonl:ro
restart: unless-stopped
networks:
- bench_net
volumes:
grafana_data:
bench_pgdata:
networks:
bench_net:
driver: bridge