-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (48 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
# web:
# build: .
# ports:
# - "80:8000"
# depends_on:
# db:
# condition: service_healthy
# command: ["python", "app.py"]
keycloak:
depends_on:
- postgres
command:
- start-dev
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/kc
KC_DB_DATABASE: kc
KC_DB_USERNAME: kc
KC_DB_PASSWORD: kc
KC_HOSTNAME: localhost
image: quay.io/keycloak/keycloak:23.0.3
ports:
- 18080:8080
restart: unless-stopped
networks:
- local-worst
postgres:
image: postgres:16
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: kc
POSTGRES_USER: kc
POSTGRES_DB: kc
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 1s
timeout: 5s
retries: 10
networks:
- local-worst
networks:
local-worst: