forked from CMS-Enterprise/SONAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (124 loc) · 3.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: "3.9"
services:
postgresql:
image: postgres:14-alpine
restart: always
ports: ["5432:5432"]
environment:
POSTGRES_DB: sonar
POSTGRES_USER: root
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
volumes:
- "dataVolume:/var/lib/postgresql/data:rw"
networks:
- "shared"
prometheus:
image: prom/prometheus:v2.45.0
restart: always
ports: ["9090:9090"]
volumes:
- "./config/development/prometheus:/etc/prometheus:ro"
- "tsdbVolume:/prometheus:rw"
command:
- "--web.enable-remote-write-receiver"
- "--storage.tsdb.retention.time=10d"
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
networks:
- "shared"
alertmanager:
image: prom/alertmanager:v0.25.0
restart: always
ports: [ "9093:9093" ]
volumes:
- "./config/development/alertmanager:/etc/alertmanager:ro"
command:
- "--config.file=/etc/alertmanager/alertmanager.yml"
networks:
- "shared"
mailserver:
image: axllent/mailpit:v1.10.2
restart: unless-stopped
ports: [ "1025:1025", "8025:8025" ]
environment:
MP_MAX_MESSAGES: 100
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- "shared"
loki:
image: grafana/loki:2.6.1
restart: always
ports: [ "3100:3100" ]
volumes:
- "./config/development/loki.yml:/etc/loki/local-config.yaml:ro"
- "lokiVolume:/loki:rw"
networks:
- "shared"
grafana:
image: grafana/grafana
restart: unless-stopped
ports: [ "3000:3000" ]
networks:
- "shared"
test-metric-app:
build: ./test/test-metric-app
restart: unless-stopped
ports: ["2020:2020"]
environment:
ENVIRONMENT: "DockerCompose"
networks:
- "shared"
http-metric-test-app:
build: ./test/http-metric-test-app
restart: unless-stopped
ports: ["8082:8082"]
networks:
- "shared"
sonar-agent:
build:
context: ./
dockerfile: Dockerfile.agent
depends_on:
- "sonar-api"
command: ["-f", "/sonar/config/service-config.json"]
restart: unless-stopped
ports: ["1234:2020"]
environment:
ENVIRONMENT: "DockerCompose"
volumes:
- "./sonar-agent/service-config.docker-compose.json:/sonar/config/service-config.json:ro"
networks:
- "shared"
sonar-api:
build:
context: ./
dockerfile: Dockerfile.api
restart: unless-stopped
ports: ["8081:8081"]
environment:
ASPNETCORE_ENVIRONMENT: "DockerCompose"
volumes:
- "./sonar-api/appsettings.DockerCompose.json:/sonar/sonar-api/appsettings.DockerCompose.json:ro"
networks:
- "shared"
sonar-ui:
build:
context: ./
dockerfile: Dockerfile.ui
depends_on:
- "sonar-api"
restart: unless-stopped
ports: ["8080:8080"]
environment:
ENVIRONMENT: "DockerCompose"
networks:
- "shared"
volumes:
dataVolume: {}
tsdbVolume: {}
lokiVolume: {}
networks:
shared: