Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 1, 2022 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i40sys/e67ee4d2eb529f7767f1becf1b7f3813 to your computer and use it in GitHub Desktop.
Save i40sys/e67ee4d2eb529f7767f1becf1b7f3813 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
influx2:
container_name: influx2
image: influxdb:latest
restart: unless-stopped
volumes:
- /data/influx2:/var/lib/influxdb2
- ./config:/etc/influxdb2
- /etc/localtime:/etc/localtime:ro
environment:
- TZ="Europe/Madrid"
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- 'DOCKER_INFLUXDB_INIT_PASSWORD=XYZ'
- DOCKER_INFLUXDB_INIT_ORG=i40sys
- DOCKER_INFLUXDB_INIT_BUCKET=iiot
- DOCKER_INFLUXDB_RETENTION=1w
- 'DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=q_XYZDwJ8zlMWEKeJ7kfdDR6AyuxsZexG5NyT3Iy4bJ3cwhZLO-6Y9OiDRJyNWjNK1ErW_qHp6DUwbPWR5tleg=='
ports:
- 8086:8086
networks:
- i40sys
networks:
i40sys:
external:
name: i40sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment