-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.jdk.yml
55 lines (51 loc) · 1.15 KB
/
docker-compose.jdk.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
services:
live:
build:
context: ./
dockerfile: docker/jdk/Dockerfile
#target: build - enable this to use JDK image
environment:
- RABBITMQ_HOST=rabbitmq
env_file: .env
depends_on:
rabbitmq:
condition: service_healthy
ports:
- 127.0.0.1:8080:8080
rabbitmq:
image: 'rabbitmq:3-management-alpine'
environment:
- RABBITMQ_DEFAULT_PASS=guest
- RABBITMQ_DEFAULT_USER=guest
ports:
- 127.0.0.1:5672:5672
- 127.0.0.1:15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 10s
retries: 3
prometheus:
image: prom/prometheus:v2.26.1
#ports:
# - 9090:9090
volumes:
- prometheus-data:/prometheus
- ./docker/prometheus:/etc/prometheus
environment:
- ACTUATOR_USER=admin
- ACTUATOR_PASSWORD=admin
command: --config.file=/etc/prometheus/prometheus.yml
depends_on:
- live
grafana:
image: grafana/grafana:7.5.6
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
depends_on:
- prometheus
volumes:
prometheus-data:
grafana-data: