-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-test.yml
58 lines (53 loc) · 1.33 KB
/
docker-compose-test.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
version: "3.8"
services:
app:
restart: unless-stopped
ports:
- "${PORT}:8083"
networks:
- back-tier-test
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_JPA_DATABASE-PLATFORM: org.hibernate.dialect.PostgreSQLDialect
SPRING_DATASOURCE_DRIVER_CLASS_NAME: org.postgresql.Driver
SPRING_DATASOURCE_PLATFORM: postgres
JAVA_TOOL_OPTIONS: -Xmx16G -Xms16G
OPENJ9_JAVA_OPTIONS: -Xverbosegclog:~/verbosegc-openj9.txt
depends_on:
db:
condition: service_healthy
db:
image: postgres:15
restart: unless-stopped
networks:
- back-tier-test
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
prometheus:
image: bitnami/prometheus
networks:
- back-tier-test
ports:
- "9090:9090"
volumes:
- type: bind
source: ./prometheus/prometheus.yml
target: /opt/bitnami/prometheus/conf/prometheus.yml
grafana:
build: ./grafana
ports:
- "3000:3000"
depends_on:
- prometheus
networks:
- back-tier-test
networks:
back-tier-test: {}