forked from zak905/keycloak-api-key-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
32 lines (32 loc) · 983 Bytes
/
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
version: '3.8'
services:
auth-server:
image: quay.io/keycloak/keycloak:19.0.2
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HTTP_ENABLED: "true"
KC_HOSTNAME: auth-server
#to keep compatible with other services that are expecting /auth
KC_HTTP_RELATIVE_PATH: /auth
KC_HOSTNAME_STRICT_HTTPS: "false"
JAVA_OPTS_APPEND: "-Dkeycloak.migration.action=import -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/import -Dkeycloak.migration.strategy=IGNORE_EXISTING"
volumes:
- ./import:/import
- ./api-key-module/target/deploy:/opt/keycloak/providers/
ports:
- "8080:8080"
command: ["start"]
dashboard-service:
build: dashboard-service
environment:
REALM_NAME: example
ports:
- "8180:8180"
rest-api-service:
build: rest-api-service
environment:
REALM_NAME: example
AUTH_SERVER_URL: auth-server:8080
ports:
- "8280:8280"