-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 980 Bytes
/
docker-compose.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
services:
api:
build: api
ports:
- "8080:8080"
environment:
- BUFRO_POSTGRES_HOST=postgres
- BUFRO_POSTGRES_PORT=5432
- BUFRO_POSTGRES_USER=bufro
- BUFRO_POSTGRES_PASSWORD=postgres
- BUFRO_POSTGRES_DB=bufro
depends_on:
postgres:
condition: service_healthy
keycloak:
condition: service_started
postgres:
image: postgres:alpine
environment:
- POSTGRES_USER=bufro
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=bufro
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "bufro", "-U", "bufro"]
interval: 5s
timeout: 5s
retries: 5
keycloak:
image: quay.io/keycloak/keycloak:26.0.0
environment:
- KC_BOOTSTRAP_ADMIN_USERNAME=admin
- KC_BOOTSTRAP_ADMIN_PASSWORD=admin
- KC_BOOTSTRAP_REALM_NAME=bufro
command: start-dev
ports:
- "8081:8080"
depends_on:
postgres:
condition: service_healthy