forked from trajakovic/keycloak-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keycloak-server.yml
26 lines (26 loc) · 1.03 KB
/
keycloak-server.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
version: '2'
services:
keycloak-server:
container_name: keycloak-server
image: openfact/keycloak-postgres
external_links:
- keycloak-postgresql:postgres
environment:
- POSTGRES_DATABASE=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
#jboss is using legacy linking environment variables
- POSTGRES_PORT_5432_TCP_ADDR=postgres
- POSTGRES_PORT_5432_TCP_PORT=5432
ports:
- 10090:8080
volumes:
- ./keycloak-server/conf/standalone.xml:/opt/jboss/keycloak/standalone/configuration/standalone.xml
- ./keycloak-server/user/keycloak-add-user.json:/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json
- ./keycloak-server/cli-scripts:/cli-scripts
- ./keycloak-server/drop-ins:/drop-ins
restart: unless-stopped
keycloak-postgresql:
extends:
file: keycloak-postgres.yml
service: keycloak-postgresql