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
|
## Environment Variables
|
||||||
|
|
||||||
- `DOCKER_INFLUXDB_INIT_ORG`
|
| Environment Variable | Description |
|
||||||
- Designates the InfluxDB organization in `telegraf.conf`
|
| -------------------------- | ----------------------------------------------- |
|
||||||
- `INFLUX_WRITE_TOKEN`
|
| `HOSTNAME` | Hostname for identifying log lines |
|
||||||
- Designates the write token for InfluxDB in `telegraf.conf`
|
| `DOCKER_GUID` | Group ID number for the `docker` user group |
|
||||||
- `INFLUX_HOST` (optional)
|
| `DOCKER_INFLUXDB_INIT_ORG` | Organization name for InfluxDB |
|
||||||
- `LOKI_HOST` (optional)
|
| `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
|
## Setup
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
services:
|
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:
|
telegraf-docker:
|
||||||
image: telegraf
|
image: telegraf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -24,3 +34,12 @@ services:
|
|||||||
command:
|
command:
|
||||||
- "-config.file=/etc/promtail/promtail-config.yml"
|
- "-config.file=/etc/promtail/promtail-config.yml"
|
||||||
- "-config.expand-env=true"
|
- "-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