-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (27 loc) · 902 Bytes
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
version: "3.9"
services:
demo:
image: python:3.11-slim
working_dir: /app
volumes: [ "./app:/app" ]
command: bash -lc "python run_demo.py && sleep infinity"
restart: unless-stopped
prom_exporter:
image: python:3.11-slim
working_dir: /app
volumes: [ "./app:/app" ]
command: bash -lc "pip install --no-cache-dir prometheus-client && python rsc_prom_exporter.py --dir ./logs --rows 800 --port 9108"
depends_on: [ demo ]
ports: [ "9108:9108" ]
restart: unless-stopped
webui:
image: python:3.11-slim
working_dir: /app
environment:
- ISM_WEB_DIR=./logs
- ISM_WEB_ROWS=1000
volumes: [ "./app:/app" ]
command: bash -lc "pip install --no-cache-dir fastapi uvicorn pandas && uvicorn rsc_webui:app --host 0.0.0.0 --port 8008 --log-level warning"
depends_on: [ demo ]
ports: [ "8008:8008" ]
restart: unless-stopped