feat: working keycloak setup

This commit is contained in:
Haletran 2026-03-01 22:48:24 +01:00
parent ce474d099d
commit 8161adbe6b
7 changed files with 28 additions and 8 deletions

View file

@ -3,8 +3,8 @@ services:
container_name: caddy
image: library/caddy
ports:
- "80:80"
- "443:443"
- "8081:80"
#- "443:443"
volumes:
- caddy-caddyfiles:/etc/caddy
- caddy-data:/data

View file

@ -1,5 +1,4 @@
{
local_certs
}
import /etc/caddy/sites/outils.caddy
import /etc/caddy/sites/diagrams.caddy
import sites/*.caddy

View file

@ -1,3 +1,3 @@
http://keycloak.ft-chatons.local {
reverse_proxy keycloak:8080
}

View file

@ -0,0 +1,3 @@
http://keycloak.ft-chatons.local {
reverse_proxy gitea:8080
}

View file

@ -1,12 +1,20 @@
services:
keycloack:
keycloak:
image: quay.io/keycloak/keycloak
container_name: keycloak
ports:
- 8080
networks:
- proxy
environment:
KC_DB: postgres
KC_DB_URL: postgres:3212
KC_DB_URL: jdbc:postgresql://postgres:3212/keycloak
KC_DB_USERNAME: bapasqui
KC_DB_PASSWORD: password
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
command:
- start-dev
restart: unless-stopped
networks:

View file

@ -8,6 +8,7 @@ services:
POSTGRES_USER: bapasqui
POSTGRES_PASSWORD: password
PGPORT: 3212
POSTGRES_DB: keycloak
restart: unless-stopped
networks:

View file

@ -15,16 +15,25 @@ case "$1" in
setup)
ansible-playbook -i ansible/inventory ansible/playbooks/install.yml -K
;;
connect)
ssh -p 2222 bapasqui@localhost
;;
start)
just start caddy
just start doh
just start postgresql
just start keycloak
;;
clean)
just clean caddy
just clean doh
just clean postgresql
#just clean keycloak
;;
restart)
just re caddy
just re doh
just re postgresql
#just re keycloak
;;
esac