-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
keycloak.yml
36 lines (33 loc) · 1.11 KB
/
keycloak.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# DOMAIN=example.com docker stack deploy -c keycloak.yml keycloak
# chown -R 1000:1000 data
services:
web:
image: keycloak/keycloak:${VERSION:-26.0.5}
command: start-dev
environment:
- KC_PROXY_HEADERS=xforwarded
- KC_BOOTSTRAP_ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- KC_BOOTSTRAP_ADMIN_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
volumes:
- ${VOLUME_PATH}data:/opt/keycloak/data
- ${VOLUME_PATH}providers:/opt/keycloak/providers
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.keycloak-${NUMBER:-1}.rule=Host(`${DOMAIN:-keycloak.localhost}`)
- traefik.http.routers.keycloak-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.keycloak-${NUMBER:-1}.service=keycloak-${NUMBER:-1}
- traefik.http.routers.keycloak-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.keycloak-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- internal
- traefik
volumes:
data:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net