Last active
February 29, 2024 03:03
-
-
Save railsstudent/f85ae0ee8f2178acaf6892f9a2dcc903 to your computer and use it in GitHub Desktop.
Docker compose for creating a keycloak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
keycloak: | |
image: quay.io/keycloak/keycloak:latest | |
container_name: keycloak | |
ports: | |
- "${KEYCLOAK_PORT}:8080" | |
environment: | |
- KEYCLOAK_ADMIN=${KEYCLOAK_USER_NAME} | |
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_PASSWORD} | |
- DB_VENDOR=h2 | |
command: start-dev --features=preview | |
volumes: | |
- ./keycloak_data:/opt/keycloak/data | |
- ./keycloak_providers:/opt/keycloak/providers | |
networks: | |
- keycloak | |
volumes: | |
keycloak_data: | |
keycloak_providers: | |
networks: | |
keycloak: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment