-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yaml
84 lines (77 loc) · 2.09 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:
todo-db:
image: postgres:13
ports:
- "5432:5432"
environment:
POSTGRES_USER: todouser
POSTGRES_PASSWORD: todopw
POSTGRES_DB: tododb
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- my-network
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- ./servers.json:/pgadmin4/servers.json
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- my-network
example-service:
image: dev.morling/flight-recorder-example-service:1.0
build:
context: ./example-service
dockerfile: src/main/docker/Dockerfile.${QUARKUS_MODE:-jvm}
ports:
- 8080:8080
- 1898:1898
environment:
QUARKUS_DATASOURCE_URL: jdbc:postgresql://todo-db:5432/tododb
links:
- todo-db
networks:
- my-network
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
links:
- example-service
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- my-network
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
links:
- prometheus
- jfr-data-source
volumes:
- ./grafana-datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana-all-dashboards.yml:/etc/grafana/provisioning/dashboards/all.yml
- ./grafana-todo-dashboard.json:/var/lib/grafana/dashboards/grafana-todo-dashboard.json
- ./jfr-datasource/dashboards/dashboard.json:/var/lib/grafana/dashboards/grafana-jfr-dashboard.json
environment:
GF_INSTALL_PLUGINS: grafana-simple-json-datasource
networks:
- my-network
jfr-data-source:
image: dev.morling/jfr-data-source:1.0
build:
context: ./jfr-datasource
dockerfile: docker/Dockerfile.jvm
ports:
- 8081:8080
networks:
- my-network
networks:
my-network:
name: flight-recorder-network