added watchtower and portainer
This commit is contained in:
14
README.md
14
README.md
@@ -22,12 +22,14 @@ Various tools to monitor Docker containers
|
||||
|
||||
## Environment Variables
|
||||
|
||||
- `DOCKER_INFLUXDB_INIT_ORG`
|
||||
- Designates the InfluxDB organization in `telegraf.conf`
|
||||
- `INFLUX_WRITE_TOKEN`
|
||||
- Designates the write token for InfluxDB in `telegraf.conf`
|
||||
- `INFLUX_HOST` (optional)
|
||||
- `LOKI_HOST` (optional)
|
||||
| Environment Variable | Description |
|
||||
| -------------------------- | ----------------------------------------------- |
|
||||
| `HOSTNAME` | Hostname for identifying log lines |
|
||||
| `DOCKER_GUID` | Group ID number for the `docker` user group |
|
||||
| `DOCKER_INFLUXDB_INIT_ORG` | Organization name for InfluxDB |
|
||||
| `INFLUX_WRITE_TOKEN` | InfluxDB write token |
|
||||
| `INFLUX_HOST` | Hostname or IP address of the InfluxDB instance |
|
||||
| `LOKI_HOST` | Hostname or IP address of the Loki instance |
|
||||
|
||||
## Setup
|
||||
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
portainer-agent:
|
||||
image: portainer/agent
|
||||
container_name: portainer_agent
|
||||
restart: always
|
||||
ports:
|
||||
- 9001:9001
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||
|
||||
telegraf-docker:
|
||||
image: telegraf
|
||||
restart: unless-stopped
|
||||
@@ -24,3 +34,12 @@ services:
|
||||
command:
|
||||
- "-config.file=/etc/promtail/promtail-config.yml"
|
||||
- "-config.expand-env=true"
|
||||
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
environment:
|
||||
WATCHTOWER_SCHEDULE: "0 3 * * *"
|
||||
|
||||
Reference in New Issue
Block a user