-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
113 lines (105 loc) · 2.49 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
api:
container_name: api
restart: always
ports:
- "5000:5000"
env_file:
- .env
build:
context: .
dockerfile: Dockerfile.api
image: ghcr.io/lalovene/dev-up-api
volumes:
- .:/api
depends_on:
- db
db:
container_name: db
restart: always
image: postgres
restart: always
env_file:
- .env
volumes:
- mydatabase:/var/lib/postgresql/data
# Comment out the following line if you don't want to run client
client:
container_name: client
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.client
image: ghcr.io/lalovene/dev-up-client
nginx-certbot:
container_name: nginx-certbot
image: jonasal/nginx-certbot:latest
restart: unless-stopped
environment:
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./user_conf.d:/etc/nginx/user_conf.d
depends_on:
- client
- api
cadvisor:
container_name: cadvisor
image: gcr.io/cadvisor/cadvisor:latest
ports:
- 8080:8080
restart: unless-stopped
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys/:ro
- /var/lib/docker/:/var/lib/docker:ro
prometheus:
container_name: prometheus
image: prom/prometheus:latest
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
depends_on:
- cadvisor
- node-exporter
node-exporter:
container_name: node-exporter
image: prom/node-exporter
restart: unless-stopped
ports:
- 9100:9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--path.rootfs=/rootfs'
- '--collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)"'
- '--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
grafana:
container_name: grafana
image: grafana/grafana
user: "1000"
env_file:
- .env
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
restart: unless-stopped
volumes:
mydatabase:
nginx_secrets:
grafana_data:
prometheus_data: