-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.7 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
version: '3.2'
services:
zipkin:
image: openzipkin/zipkin:latest
container_name: ocphp_zipkin
ports:
# Port used for the Zipkin UI and HTTP API
- 9411:9411
prometheus:
image: prom/prometheus:v2.5.0
container_name: ocphp_prometheus
ports:
# Port used for the Prometheus UI
- 9090:9090
volumes:
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
links:
- agent
agent:
image: basvanbeek/opencensus-agent:latest
container_name: ocphp_agent
environment:
# Set to the correct credentials file if using Stackdriver
GOOGLE_APPLICATION_CREDENTIALS: credentials/my-project-creds.json
volumes:
- ./data/agent/config.yaml:/config.yaml
- ./data/agent/credentials:/credentials
ports:
# Port used for receiving OpenCensus stats and metrics
- 55678:55678
# Port used for serving zPages
- 55679:55679
# Port used to serve scrapable Prometheus metrics
- 8888:8888
links:
- zipkin
daemon:
image: basvanbeek/opencensus-daemon:latest
container_name: ocphp_daemon
command: -ocagent.addr agent:55678 -php.servicename ocphpdemo -log.level 4
volumes:
- ./data/daemon/socket:/tmp
links:
- agent
php:
image: basvanbeek/opencensus-php:latest
container_name: ocphp_php
volumes:
- ./data/daemon/socket:/tmp
- ./data/php:/var/www
ports:
- 8080:80
links:
- daemon