forked from bkconrad/screeps-grafana
-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
49 lines (49 loc) · 1.35 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "2"
volumes:
graphite_conf:
graphite_data:
grafana_data:
services:
node:
build:
context: .
dockerfile: Dockerfile
restart: always
links:
- statsd
environment:
GRAPHITE_PORT_8125_UDP_ADDR: "statsd"
env_file: docker-compose.env
statsd:
image: ennexa/statsd
links:
- graphite
graphite:
image: ennexa/graphite
restart: always
volumes:
- graphite_conf:/opt/graphite/conf
- graphite_data:/opt/graphite/storage/whisper
grafana:
image: grafana/grafana
restart: always
volumes:
- grafana_data:/var/lib/grafana
links:
- graphite
ports:
- "1337:3000"
# grafana_setup_datasource:
# image: appropriate/curl
# links:
# - grafana
# command: |
# curl 'http://admin:admin@grafana:3000/api/datasources' -X POST -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"name":"localGraphite","type":"graphite","url":"http://graphite:8000","access":"proxy","isDefault":true,"database":""}'
# grafana_setup_sampledashboard:
# image: appropriate/curl
# links:
# - grafana
# volumes:
# - ./sampleDashboard.json:/sampleDashboard.json
# command: |
# curl 'http://admin:admin@grafana:3000/api/dashboards/db' -X POST -H 'Content-Type: application/json;charset=UTF-8' --data @/sampleDashboard.json