-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
72 lines (63 loc) · 1.4 KB
/
docker-compose.prod.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'
services:
rockiot:
build:
context: rockiot
dockerfile: ./Dockerfile.prod
env_file:
- db.prod.env
- rockiot.prod.env
rockiotworker_default:
env_file:
- db.prod.env
- rockiot.prod.env
rockiotworker_device:
env_file:
- db.prod.env
- rockiot.prod.env
rockiotbeat:
env_file:
- db.prod.env
- rockiot.prod.env
rockiotlistener:
env_file:
- db.prod.env
- rockiot.prod.env
rockiot_ingest:
env_file:
- db.prod.env
- rockiot.prod.env
nodeexporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports:
- "9100:9100"
networks:
- app-tier
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.40.0
container_name: cadvisor
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /cgroup:/sys/fs/cgroup:ro
restart: unless-stopped
ports:
- "8080:8080"
networks:
- app-tier