Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrew-ld/docker-stats
https://github.com/andrew-ld/docker-stats
docker plot telegram usage
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrew-ld/docker-stats
- Owner: andrew-ld
- Created: 2020-04-16T20:28:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T13:53:31.000Z (10 months ago)
- Last Synced: 2024-08-01T15:33:22.702Z (3 months ago)
- Topics: docker, plot, telegram, usage
- Language: Python
- Size: 33.2 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-stats
## Build
```bash
git clone https://github.com/andrew-ld/docker-stats
cd docker-stats
docker image build -t dockerstats:latest .
```## Compose
docker-compose.yml example:
```yaml
version: "2.4"services:
dockerstats:
restart: "unless-stopped"
container_name: dockerstats
image: dockerstats:latest
environment:
DS_TOKEN: "1234:AAbbccdd12345" # token telegram bot
DS_TICKS: "450" # 15min~
DS_CHANNEL: "-10012345" # chat id
TZ: "Europe/Rome" # timezone
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
```Other container example:
```yaml
labels:
"plot.label": "nginx" # label custom name
"plot.color": "#33cc33" # hex color
```