Skip to content

Instantly share code, notes, and snippets.

@haigopi
Created July 27, 2020 04:14
Show Gist options
  • Save haigopi/ba0c344ac890d85ef746a43e177160da to your computer and use it in GitHub Desktop.
Save haigopi/ba0c344ac890d85ef746a43e177160da to your computer and use it in GitHub Desktop.
keycloak.yml
version: '2'
services:
keycloak:
image: jboss/keycloak:10.0.0
command:
[
'-b',
'0.0.0.0',
'-Dkeycloak.migration.action=import',
'-Dkeycloak.migration.provider=dir',
'-Dkeycloak.migration.dir=/opt/jboss/keycloak/realm-config',
'-Dkeycloak.migration.strategy=OVERWRITE_EXISTING',
'-Djboss.socket.binding.port-offset=1000',
'-Dkeycloak.profile.feature.upload_scripts=enabled',
]
volumes:
- ./realm-config:/opt/jboss/keycloak/realm-config
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- DB_VENDOR=POSTGRES
- DB_ADDR=postgres
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_SCHEMA=public
- DB_PASSWORD=password
ports:
- 9080:9080
- 9443:9443
- 10990:10990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment