Skip to content

Instantly share code, notes, and snippets.

@matisiekpl
Created November 20, 2025 22:45
Show Gist options
  • Select an option

  • Save matisiekpl/36f4dbd4de6d0e24d15be0911fabd9da to your computer and use it in GitHub Desktop.

Select an option

Save matisiekpl/36f4dbd4de6d0e24d15be0911fabd9da to your computer and use it in GitHub Desktop.
services:
influxdb:
image: influxdb:2.7
ports:
- "8086:8086"
volumes:
- ./volumes/influxdb:/var/lib/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=password
- DOCKER_INFLUXDB_INIT_ORG=maciek
- DOCKER_INFLUXDB_INIT_BUCKET=maciek
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-token
healthcheck:
test: ["CMD", "influx", "ping"]
interval: 30s
timeout: 10s
retries: 3
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment