keycloak: make data local

single-dockerfile
Ubuntu 3 years ago
parent a4dc32e387
commit be5ea40f83
  1. 3
      keycloak/docker-compose.yaml

@ -8,12 +8,13 @@ services:
mysql: mysql:
image: mysql:5.7 image: mysql:5.7
volumes: volumes:
- mysql_data:/var/lib/mysql - ./mysql_data:/var/lib/mysql
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: keycloak MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak MYSQL_USER: keycloak
MYSQL_PASSWORD: password MYSQL_PASSWORD: password
keycloak: keycloak:
image: quay.io/keycloak/keycloak:18.0.0 image: quay.io/keycloak/keycloak:18.0.0
entrypoint: /opt/keycloak/bin/kc.sh start-dev entrypoint: /opt/keycloak/bin/kc.sh start-dev

Loading…
Cancel
Save