Run:
docker-compose up -d
in directory where below example is present (see Docker Compose docs for details.)
version: '2'
services:
web:
image: xliiv/dashboard
ports:
- "8000:8000"
- "8001:8001"
links:
- redis
environment:
- DASHBOARD_IP_PORT=0.0.0.0:8000
- DASHBOARD_WEBSOCKET_IP_PORT=0.0.0.0:8001
- DASHBOARD_FRONT_WEBSOCKET_IP_PORT=0.0.0.0:8001
- DASHBOARD_REDIS_IP_PORT=redis:6379
redis:
image: redis
to run service.
Run:
$ DASHBOARD_DASHBOARD_TOKEN=<token> DASHBOARD_IP_PORT=0.0.0.0:8000 feed.py
where:
<token> is API-TOKEN which you obtain during dashboard creation (for example:
http://localhost:8000/dashboard/new )
feed.py it's example Python script (requires requests library) whch feeds Dashboard.
Modify the script to push your data.
Content type
Image
Digest
Size
13.5 MB
Last updated
about 9 years ago
docker pull xliiv/dashboard