-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (40 loc) · 1.01 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
version: '3.3'
networks:
kmetadbnet: null
services:
postgres1:
image: postgres:16
networks:
- kmetadbnet
ports:
- '5432'
volumes:
- postgresdata01:/var/lib/postgresql/data
environment:
- POSTGRES_DB=kmetadb
- POSTGRES_USER=kmetadb
- POSTGRES_PASSWORD=password
- PGDATA=/var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 10
kmetadb:
depends_on:
postgres1:
condition: service_healthy
image: com.github.streamshub/kmetadb:latest
networks:
- kmetadbnet
ports:
- 8080:8080
env_file:
- .env
environment:
- QUARKUS_DATASOURCE_DB_KIND=postgresql
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres1:5432/kmetadb
- QUARKUS_DATASOURCE_USERNAME=kmetadb
- QUARKUS_DATASOURCE_PASSWORD=password
volumes:
postgresdata01: {}