forked from ahahu/keycloak_cache_expiry_oom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.94 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
networks:
mynet:
driver: bridge
services:
test:
image: curlimages/curl:7.77.0
networks:
- mynet
hostname: test
entrypoint: /test/test-script.sh
volumes:
- ./single_auth_request.sh:/test/single_auth_request.sh
- ./test-script.sh:/test/test-script.sh
depends_on:
keycloak:
condition: service_healthy
mysql:
image: mysql:5.7
networks:
- mynet
environment:
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
keycloak:
image: jboss/keycloak:15.1.1
networks:
- mynet
environment:
DB_VENDOR: MYSQL
DB_ADDR: mysql
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
KEYCLOAK_STATISTICS: all
KEYCLOAK_IMPORT: /opt/jboss/tools/testRealm.json
entrypoint: /opt/jboss/tools/extended-docker-entrypoint.sh
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9990"]
interval: 30s
timeout: 5s
retries: 5
ports:
- 8481:8080
- 9991:9990
- 8787:8787
volumes:
- ./keycloak/docker-entrypoint.sh:/opt/jboss/tools/extended-docker-entrypoint.sh
# - ./keycloak/configure-caches.cli:/opt/jboss/startup-scripts/configure-caches.cli
# - ./keycloak/configure-cache-owners.cli:/opt/jboss/startup-scripts/configure-cache-owners.cli
- ./keycloak/configure-logging.cli:/opt/jboss/startup-scripts/configure-logging.cli
# - ./keycloak/configure-local-cache-lifespan.cli:/opt/jboss/startup-scripts/configure-local-cache-lifespan.cli
- ./keycloak/testRealm.json:/opt/jboss/tools/testRealm.json
- ./jmx-client:/copy
depends_on:
- mysql