Skip to content

Instantly share code, notes, and snippets.

@alkampfergit
Created December 8, 2022 16:54
Show Gist options
  • Save alkampfergit/919332123731ed0f7b2586be31a674b0 to your computer and use it in GitHub Desktop.
Save alkampfergit/919332123731ed0f7b2586be31a674b0 to your computer and use it in GitHub Desktop.
Keycloak on docker with TLS
version: '3.7'
services:
keycloak:
image: jboss/keycloak:latest
container_name: keycloak_tls
restart: always
ports:
# - 8080:8080
- 127.1.0.1:443:8443
volumes:
- C:\develop\Docker\keycloak\localdata\:/opt/jboss/keycloak/standalone/data
- C:\develop\certificates\keycloak.codewrecks.com\cert.pem:/etc/x509/https/tls.crt
- C:\develop\certificates\keycloak.codewrecks.com\privkey.pem:/etc/x509/https/tls.key
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=xxxxxxxxxxxx
@volkansolak
Copy link

Hi, when i try to run it with ssl certificate, i get an error. May I know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment