2022-10-12 15:31:44 -07:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
keycloak:
|
|
|
|
image: quay.io/keycloak/keycloak:latest
|
|
|
|
container_name: keycloak_keycloak
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
|
|
|
keep-file: "true"
|
|
|
|
networks:
|
|
|
|
keycloak:
|
|
|
|
web:
|
|
|
|
aliases:
|
|
|
|
- keycloak
|
|
|
|
restart: "no"
|
2022-10-12 16:07:59 -07:00
|
|
|
command: start-dev --hostname=keycloak.jafner.net
|
2022-10-12 15:31:44 -07:00
|
|
|
environment:
|
|
|
|
- KEYCLOAK_ADMIN=jafner
|
|
|
|
- KEYCLOAK_ADMIN_PASSWORD=iEKfrgdTLfbdqtMkH&FMrL3#t8^qfy%eSY5G94tfnUdQB3G!%CUaoFJuhCUN
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
labels:
|
|
|
|
traefik.http.routers.keycloak.rule: Host(`keycloak.jafner.net`)
|
|
|
|
traefik.http.routers.keycloak.tls.certresolver: lets-encrypt
|
2022-10-12 16:10:50 -07:00
|
|
|
traefik.http.routers.keycloak.middlewares: lan-only@file
|
2022-10-12 16:09:53 -07:00
|
|
|
traefik.http.services.keycloak.loadbalancer.server.port: 8080
|
2022-10-12 15:31:44 -07:00
|
|
|
|
|
|
|
networks:
|
|
|
|
keycloak:
|
|
|
|
web:
|
|
|
|
external: true
|