-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yml
60 lines (55 loc) · 1.51 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
keycloak:
image: quay.io/keycloak/keycloak:${KC_VERSION}
ports:
- '9100:9100'
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_HTTP_PORT: 9100
KC_LOG_CONSOLE_COLOR: 'true'
#KC_LOG_LEVEL: DEBUG # Uncomment to enable debug logging
entrypoint: /bin/sh
command:
- -c
- |
set -ex
cp /opt/keycloak/providers/themes/*.jar /opt/keycloak/providers
cp /opt/keycloak/providers/target/keycloak-*.jar /opt/keycloak/providers
/opt/keycloak/bin/kc.sh build
/opt/keycloak/bin/kc.sh start-dev --import-realm
volumes:
- ./.docker/keycloak-config/:/opt/keycloak/data/import/:ro
- ./target/:/opt/keycloak/providers/target:ro
- spi-theme:/opt/keycloak/providers/themes:ro
links:
- prism
# This service downloads the theme from the internet
download-theme:
image: busybox
command:
- /bin/sh
- -c
- |
set -ex;
wget -O /spi/vymalo-theme.jar https://github.com/vymalo/vymalo-keycloak-theme/releases/download/v2.1.2/theme-2.1.2.jar;
echo "Downloaded theme";
ls -la /spi;
# Keep alive
tail -f /dev/null
volumes:
- spi-theme:/spi
# This is a mock server for the SMS API
prism:
image: stoplight/prism:latest
ports:
- "4010:4010"
command:
- mock
- -h
- 0.0.0.0
- /openapi/sms-open-api.yml
volumes:
- ./openapi:/openapi
volumes:
spi-theme: