-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (70 loc) · 1.64 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
# router
traefik:
image: traefik
restart: always
ports:
- "80:80"
- "8080:8080"
volumes:
- ./traefik.toml:/etc/traefik/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
# sample app
whoami:
image: containous/whoami
labels:
- "traefik.frontend.rule=Host:whoami.docker.localhost"
nodeapp:
build:
context: ./node-app
dockerfile: Dockerfile
args:
PROJECT_DIR: "/var/www"
ports:
- 3002:6001
labels:
- "traefik.frontend.rule=Host:nodeapp.docker.localhost"
depends_on:
- influxsrx
cadvisor:
image: google/cadvisor:latest
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxsrx:8086 -storage_driver_user=admin -storage_driver_password=admin
ports:
- 8081:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /dev/disk:/dev/disk:ro
labels:
- "traefik.frontend.rule=Host:cadvisor.docker.localhost"
depends_on:
- influxsrx
influxsrx:
image: influxdb
ports:
- 8086:8086
volumes:
- influxdb-storage:/var/lib/influxdb
env_file:
- .env
labels:
- "traefik.frontend.rule=Host:influxsrx.docker.localhost"
# dashboard
grafana:
image: grafana/grafana
ports:
- "3001:3000"
depends_on:
- influxsrx
volumes:
- grafana-storage:/var/lib/grafana
env_file:
- .env
labels:
- "traefik.frontend.rule=Host:grafana.docker.localhost"
volumes:
grafana-storage:
influxdb-storage: