feat: add Keycloak service deployment manifest and setup documentation
This commit is contained in:
parent
7e2e26ddd4
commit
99a4da38e0
1
keycloak/README.md
Normal file
1
keycloak/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
docker stack deploy -c keycloak.yml keycloak
|
||||
38
keycloak/keycloak.yml
Normal file
38
keycloak/keycloak.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:latest
|
||||
command: start --optimized
|
||||
environment:
|
||||
KC_DB: postgres
|
||||
KC_DB_URL: jdbc:postgresql://postgres-db:5432/keycloak
|
||||
KC_DB_USERNAME: postgres
|
||||
KC_DB_PASSWORD: 98836
|
||||
KC_HOSTNAME: auth.emrekirman.com # Kendi domaininizle değiştirin
|
||||
KC_PROXY: edge # Reverse proxy (Nginx/Traefik) arkasındaysanız gerekli
|
||||
KEYCLOAK_ADMIN: admin
|
||||
KEYCLOAK_ADMIN_PASSWORD: eE24619840420*
|
||||
ports:
|
||||
- target: 8080
|
||||
published: 8080
|
||||
protocol: tcp
|
||||
mode: host
|
||||
networks:
|
||||
- postgres_network
|
||||
- keycloak-net
|
||||
deploy:
|
||||
replicas: 2
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 10s
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
networks:
|
||||
postgres_network:
|
||||
external: true
|
||||
keycloak-net:
|
||||
external: true
|
||||
Loading…
Reference in New Issue
Block a user