-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (66 loc) · 1.58 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
version: '3'
services:
php:
image: php:7.3-fpm-alpine
container_name: bmfs_php
restart: 'on-failure'
volumes:
- ./:/repo
networks:
- bmfs_network
nginx:
image: nginx:latest
container_name: bmfs_nginx
restart: 'on-failure'
volumes:
- ./:/repo
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- default
- bmfs_network
labels:
- "traefik.frontend.rule=HostRegexp:{subdomain:[a-z]+}.business-metrics.de"
depends_on:
- php
- prometheus
prometheus:
image: prom/prometheus:latest
container_name: bmfs_prometheus
restart: 'on-failure'
volumes:
- ./.docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
networks:
- bmfs_network
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=32d'
- '--web.enable-lifecycle'
grafana:
image: grafana/grafana:latest
container_name: bmfs_grafana
restart: 'on-failure'
volumes:
- ./data/grafana:/var/lib/grafana
networks:
- bmfs_network
depends_on:
- prometheus
cadvisor:
image: google/cadvisor:latest
container_name: bmfs_cadvisor
restart: 'on-failure'
networks:
- bmfs_network
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
networks:
default:
external:
name: "gateway"
bmfs_network: