-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-deploy-local.yml
72 lines (66 loc) · 1.55 KB
/
docker-compose-deploy-local.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.7"
services:
graphite:
image: graphiteapp/graphite-statsd:1.1.10-4
volumes:
- "./statsd.config.js:/opt/statsd/config.js:ro"
- "./graphite.storage-schemas.conf:/opt/graphite/conf/storage-schemas.conf:ro"
- "./graphite:/opt/graphite/storage/:rw"
ports:
- "8080:8080"
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.0
command: >
-storage_driver="statsd"
-storage_driver_host="graphite:8125"
-storage_driver_db="cadvisor"
-storage_driver_buffer_duration="10s"
--enable_metrics=cpu,cpuLoad,disk,diskIO,memory,network
depends_on:
- graphite
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:ro"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
- "/dev/disk/:/dev/disk:ro"
grafana:
image: efoppiano/grafana:0.1
ports:
- "8081:3000"
volumes:
- "grafana_config:/var/lib/grafana"
depends_on:
- graphite
worker:
build:
context: ./src/
dockerfile: worker/Dockerfile
tty: true
stdin_open: true
depends_on:
- graphite
- manager
deploy:
replicas: ${N_WORKERS}
restart_policy:
condition: none
environment:
- LOCAL=${LOCAL}
manager:
build:
context: ./src/
dockerfile: master/Dockerfile
depends_on:
- graphite
deploy:
restart_policy:
condition: none
tty: true
stdin_open: true
environment:
- LOCAL=${LOCAL}
- N_WORKERS=${N_WORKERS}
volumes:
grafana_config:
driver: local