-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yaml
64 lines (60 loc) · 1.53 KB
/
docker-compose.yaml
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
version: "2"
services:
dev-server:
build:
context: .
dockerfile: Dockerfile-dev
command:
- bash
- runDevServer.sh
ports:
- 3000:3000
- 9102:9102
environment:
PUM_CONFIG_PATH: /stage/metricConfigs
volumes:
- ./serverSrc:/stage/serverSrc
- ./clientSrc:/stage/clientSrc
- ./config/metricConfigs:/stage/metricConfigs
# prod-server:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - 3000:3000
# # Note: in production you should not expose port 9102. It is exposed here just to make it easier to manually verify GET :9102/metrics
# - 9102:9102
# environment:
# PUM_CONFIG_PATH: /stage/metricConfigs
# volumes:
# - ./config/metricConfigs:/stage/metricConfigs
demo-prom:
image: prom/prometheus
command:
- -config.file=/prometheusConfig/prometheus.yml
ports:
- 9090:9090
volumes:
- ./demo/prometheusConfig:/prometheusConfig
links:
- dev-server:metrics-aggregator-dev-server
demo-grafana:
image: grafana/grafana
ports:
- 3001:3000
volumes:
- ./demo/grafanaConfig:/grafana-data
links:
- demo-prom
environment:
GF_AUTH_BASIC_ENABLED: "false"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_PATHS_DATA: /grafana-data
# This server actually serves the demo code
sample-web-server:
image: nginx
ports:
- 8080:80
volumes:
- ./demo/sampleApp:/usr/share/nginx/html:ro