Skip to content

Instantly share code, notes, and snippets.

@arnobroekhof
Created March 1, 2018 12:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnobroekhof/76e24f2a885da9e90b4d488475da52c6 to your computer and use it in GitHub Desktop.
Save arnobroekhof/76e24f2a885da9e90b4d488475da52c6 to your computer and use it in GitHub Desktop.
Docker compose file for influxdb and grafana
version: "3.2"
# run script
# docker swarm init
# docker stack deploy timeseries -c docker-compose.yml
services:
influxdb:
image: influxdb:latest
ports:
- 8086:8086
- 8083:8083
networks:
- influx
volumes:
- influxdb:/var/lib/influxdb
environment:
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: admin
INFLUXDB_USER: user
INFLUXDB_USER_PASSWORD: user
INFLUXDB_DB: timeseries
grafana:
image: grafana/grafana
ports:
- 3000:3000
networks:
- influx
networks:
influx:
driver: overlay
attachable: true
volumes:
influxdb:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment