Created
March 1, 2018 12:02
-
-
Save arnobroekhof/76e24f2a885da9e90b4d488475da52c6 to your computer and use it in GitHub Desktop.
Docker compose file for influxdb and grafana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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