Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
influxdb-docker [2021/12/22 11:01] – angelegt Fabian Horst | influxdb-docker [2021/12/22 11:03] (aktuell) – Fabian Horst | ||
---|---|---|---|
Zeile 7: | Zeile 7: | ||
image: influxdb: | image: influxdb: | ||
volumes: | volumes: | ||
- | | + | - /docker/influxdb:/ |
- | | + | |
ports: | ports: | ||
- | - "8086:8086" | + | - 8086:8086 |
# Use the influx cli to set up an influxdb instance. | # Use the influx cli to set up an influxdb instance. | ||
influxdb_cli: | influxdb_cli: | ||
Zeile 18: | Zeile 17: | ||
volumes: | volumes: | ||
# Mount for influxdb data directory and configuration | # Mount for influxdb data directory and configuration | ||
- | - /Users/anaisdotis-georgiou/ | + | - /docker/influxdb:/ |
- | - ./ | + | |
- | - ./ | + | |
environment: | environment: | ||
# Use these same configurations parameters in your telegraf configuration, | # Use these same configurations parameters in your telegraf configuration, | ||
Zeile 29: | Zeile 26: | ||
- DOCKER_INFLUXDB_INIT_BUCKET=mybucket | - DOCKER_INFLUXDB_INIT_BUCKET=mybucket | ||
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken | - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken | ||
- | - INFLUXD_TLS_CERT=/ | ||
- | - INFLUXD_TLS_KEY=/ | ||
entrypoint: [" | entrypoint: [" | ||
restart: on-failure: | restart: on-failure: | ||
depends_on: | depends_on: | ||
- influxdb | - influxdb | ||
- | telegraf: | + | |
- | image: telegraf | + | |
- | links: | + | |
- | - influxdb | + | |
- | volumes: | + | |
- | # Mount for telegraf config | + | |
- | - ./ | + | |
- | env_file: | + | |
- | - ./ | + | |
- | environment: | + | |
- | - DOCKER_INFLUXDB_INIT_ORG=myorg | + | |
- | - DOCKER_INFLUXDB_INIT_BUCKET=mybucket | + | |
- | - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken | + | |
- | depends_on: | + | |
- | - influxdb_cli | + | |
volumes: | volumes: | ||
- | | + | |
</ | </ |