-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.11 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
version: "3"
services:
php:
build:
dockerfile: ./docker/php-fpm/Dockerfile
context: .
depends_on:
- redis
volumes:
- ./:/app
redis:
image: redis:alpine
prometheus:
image: prom/prometheus
command:
- '--web.listen-address=:9090'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.console.libraries=/etc/prometheus/console_libraries'
depends_on:
- pushgateway
ports:
- 9090:9090
volumes:
- ./docker/prometheus/prometheus.yml/:/etc/prometheus/prometheus.yml
pushgateway:
image: prom/pushgateway
command:
- '--web.listen-address=:9191'
- '--push.disable-consistency-check'
- '--persistence.interval=5m'
ports:
- 9191:9191
grafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./docker/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false