53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
|
version: "2.2"
|
||
|
|
||
|
networks:
|
||
|
keycloak:
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: 10.0.1.0/24
|
||
|
|
||
|
services:
|
||
|
|
||
|
mariadb:
|
||
|
build: db/mariadb
|
||
|
image: keycloak_test_mariadb:${KEYCLOAK_VERSION:-latest}
|
||
|
cpus: 1
|
||
|
networks:
|
||
|
- keycloak
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: root
|
||
|
MYSQL_DATABASE: keycloak
|
||
|
MYSQL_USER: keycloak
|
||
|
MYSQL_PASSWORD: keycloak
|
||
|
MYSQL_INITDB_SKIP_TZINFO: 1
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
|
||
|
keycloak:
|
||
|
build: keycloak
|
||
|
image: keycloak_test_keycloak:${KEYCLOAK_VERSION:-latest}
|
||
|
depends_on:
|
||
|
mariadb:
|
||
|
condition: service_healthy
|
||
|
cpus: 1
|
||
|
networks:
|
||
|
- keycloak
|
||
|
environment:
|
||
|
MARIADB_HOST: mariadb
|
||
|
MARIADB_DATABASE: keycloak
|
||
|
MARIADB_USER: keycloak
|
||
|
MARIADB_PASSWORD: keycloak
|
||
|
KEYCLOAK_USER: admin
|
||
|
KEYCLOAK_PASSWORD: admin
|
||
|
# docker-compose syntax note: ${ENV_VAR:-<DEFAULT_VALUE>}
|
||
|
JAVA_OPTS: ${KEYCLOAK_JVM_MEMORY:--Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m} -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
|
||
|
HTTP_MAX_CONNECTIONS: ${KEYCLOAK_HTTP_MAX_CONNECTIONS:-500}
|
||
|
WORKER_IO_THREADS: ${KEYCLOAK_WORKER_IO_THREADS:-2}
|
||
|
WORKER_TASK_MAX_THREADS: ${KEYCLOAK_WORKER_TASK_MAX_THREADS:-16}
|
||
|
DS_MIN_POOL_SIZE: ${KEYCLOAK_DS_MIN_POOL_SIZE:-10}
|
||
|
DS_MAX_POOL_SIZE: ${KEYCLOAK_DS_MAX_POOL_SIZE:-100}
|
||
|
DS_POOL_PREFILL: "${KEYCLOAK_DS_POOL_PREFILL:-true}"
|
||
|
DS_PS_CACHE_SIZE: ${KEYCLOAK_DS_PS_CACHE_SIZE:-100}
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
|
- "9990:9990"
|