forked from devonfw-training/java-quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (62 loc) · 1.62 KB
/
docker-compose.yaml
File metadata and controls
67 lines (62 loc) · 1.62 KB
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
version: "3.8"
services:
quarkus-app:
build:
context: ./backend
dockerfile: src/main/docker/Dockerfile.jvm
image: quarkus-backend
environment:
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://quarkus-db:5432/quarkus
- QUARKUS_FLYWAY_SCHEMAS=quarkus
ports:
- "8080:8080" # the HTTP endpoint
depends_on:
quarkus-db:
condition: service_healthy
networks:
- quarkus
quarkus-db:
image: "postgres:15.1"
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=quarkus
- POSTGRES_PASSWORD=quarkus
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quarkus"]
interval: 5s
timeout: 5s
retries: 6
ports:
- "5432:5432"
networks:
- quarkus
keycloak:
image: jboss/keycloak:16.1.1
container_name: local_keycloak
restart: unless-stopped
environment:
DB_VENDOR: POSTGRES
DB_ADDR: quarkus-db
DB_DATABASE: quarkus
DB_USER: quarkus
DB_SCHEMA: public
DB_PASSWORD: quarkus
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: quarkus
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- "28080:8080"
networks:
- quarkus
depends_on:
- quarkus-db
- quarkus-app
networks:
quarkus:
driver: bridge
volumes:
db-data:
driver: local