-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
84 lines (76 loc) · 2.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
app1:
image: sampleapp:latest
# restart: always
environment:
ASPNETCORE_URLS: "http://+;https://+;"
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_Kestrel__Certificates__Default__Password: changeit
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
# ports:
# - 8082:443
volumes:
- ./Cert/aspnetapp.pfx:/https/aspnetapp.pfx:ro
app2:
image: sampleapp:latest
# restart: always
environment:
ASPNETCORE_URLS: "http://+;https://+;"
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_Kestrel__Certificates__Default__Password: changeit
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
volumes:
- ./Cert/aspnetapp.pfx:/https/aspnetapp.pfx:ro
app3:
image: sampleapp:latest
# restart: always
environment:
ASPNETCORE_URLS: "http://+;https://+;"
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_Kestrel__Certificates__Default__Password: changeit
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
volumes:
- ./Cert/aspnetapp.pfx:/https/aspnetapp.pfx:ro
app4:
image: sampleapp:latest
# restart: always
environment:
ASPNETCORE_URLS: "http://+;https://+;"
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_Kestrel__Certificates__Default__Password: changeit
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
volumes:
- ./Cert/aspnetapp.pfx:/https/aspnetapp.pfx:ro
# nginx:
# image: nginx
# volumes:
# - ./Conf/nginx/nginx.conf:/etc/nginx/nginx.conf
# ports:
# - 8080:8080
# cpus: 2
haproxy:
image: haproxy
volumes:
- ./Conf/haproxy:/usr/local/etc/haproxy:ro
# - ./Cert/local.host.dev+2.pem:/https/aspnetapp.pem:ro
# - ./Cert/local.host.dev+2-key.pem:/https/aspnetapp.pem.key:ro
ports:
- 8081:8080
- 8404:8404
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./Monitor/Prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
grafana:
image: grafana/grafana-oss
ports:
- 3000:3000
restart: unless-stopped
volumes:
- 'grafana_storage:/var/lib/grafana'
volumes:
prometheus-data:
grafana_storage: {}