-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 1.1 KB
/
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
43
services:
keycloak:
image: "quay.io/keycloak/keycloak"
command: start-dev
environment:
KC_DB: postgres
KC_DB_URL_HOST: postgres_keycloak_demo
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: ${KC_DB_USERNAME}
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KC_DB_SCHEMA: public
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
ports:
- 8080:8080
depends_on:
postgres_keycloak_demo:
condition: service_healthy
networks:
- keycloak_demo_dev_network
postgres_keycloak_demo:
image: "ubuntu/postgres"
command: postgres -c 'max_connections=10'
volumes:
- pgdata_keycloak_demo:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
healthcheck:
test: "exit 0"
ports:
- "5436:5432"
networks:
- keycloak_demo_dev_network
volumes:
pgdata_keycloak_demo:
networks:
keycloak_demo_dev_network:
driver: bridge