Skip to content

Instantly share code, notes, and snippets.

@elecnix
Last active March 27, 2017 00:26
Show Gist options
  • Save elecnix/51637af8e7bea6d4faf8471397e4b0e5 to your computer and use it in GitHub Desktop.
Save elecnix/51637af8e7bea6d4faf8471397e4b0e5 to your computer and use it in GitHub Desktop.
ErabliCompose
# Ce fichier sert à exécuter un collecteur, un dashboard, et une base de données InfluxDB.
#
# 1. git clone https://gist.github.com/51637af8e7bea6d4faf8471397e4b0e5.git erabliere
# 2. cd erabliere
# 3. git clone https://github.com/elecnix/ErabliCollecteur.git
# 4. git clone https://github.com/elecnix/ErabliDash.git
# 5. docker-compose up -d
# 6. Ouvrir http://localhost:3000/ pour ErabliDash
# 7. Ouvrir http://localhost:3001/ pour Grafana
#
version: '2'
services:
collecteur:
build: "ErabliCollecteur"
ports:
- "8150:8150"
volumes:
- "/home/nmarchildon/ErabliCollecteur/data:/data"
dash:
build:
context: ErabliDash
dockerfile: docker-dash/Dockerfile
ports:
- "3000:3000"
volumes:
- erablidash:/data
links:
- collecteur
influxdb:
image: tutum/influxdb
ports:
- "8083:8083"
- "8086:8086"
grafana:
image: grafana/grafana
volumes:
- grafana:/var/lib/grafana
ports:
- "3001:3000"
links:
- influxdb
volumes:
erablidash: {}
grafana: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment