-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
50 lines (48 loc) · 1.43 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
services:
springboot-todo-service:
image: ghcr.io/ammbra/springboot-todo-app:1.0.0
build:
context: .
dockerfile: Dockerfile
container_name: springboot-todo-service
environment:
JDK_JAVA_OPTIONS: >
-XX:+HeapDumpOnOutOfMemoryError
-Xms768m -Xmx768m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=70
-XX:NativeMemoryTracking=summary
-XX:StartFlightRecording:filename=recordings/recording.jfr,settings=/myprofile.jfc,maxage=5m,dumponexit=true
volumes:
- ./recordings:/recordings
- ./scripts/myprofile.jfc:/myprofile.jfc
ports:
- 8080:8080
- 1099:1099
networks:
default: null
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
links:
- springboot-todo-service
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
default: null
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
links:
- prometheus
volumes:
- ./grafana/grafana-datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/grafana-all-dashboards.yml:/etc/grafana/provisioning/dashboards/all.yml
- ./grafana/grafana-todo-dashboard.json:/var/lib/grafana/dashboards/grafana-todo-dashboard.json
environment:
GF_INSTALL_PLUGINS: grafana-simple-json-datasource
networks:
default: null
networks:
default:
name: backend