Move keycloak to infra
All checks were successful
ShellCheck / shellcheck (push) Successful in 22s

This commit is contained in:
Mathieu Strypsteen 2024-09-12 21:18:59 +02:00
parent 720beb07c4
commit fa66c1c5cd
Signed by: mathieu
GPG key ID: 782A42E461BC6824
7 changed files with 16 additions and 3 deletions

View file

@ -4,8 +4,8 @@ server {
listen [::]:443 ssl;
include snippets/headers.conf;
location / {
set $upstream home.server.home.arpa;
proxy_pass http://$upstream:8000;
set $upstream systemd-keycloak.;
proxy_pass http://$upstream:8080;
include snippets/proxy.conf;
}
}

View file

@ -2,6 +2,7 @@
Image=docker.io/postgres:16-alpine
Network=postgresql.network
Volume=postgresql.volume:/var/lib/postgresql/data:U,Z
Secret=POSTGRES_PASSWORD,type=env
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,3 @@
[Container]
Network=postgresql.network
Secret=POSTGRES_PASSWORD,type=env

View file

@ -8,7 +8,6 @@ Network=postgresql.network
Exec=start --hostname=auth.strypsteen.com --http-enabled=true --proxy-headers=xforwarded --db=postgres --db-url-host=systemd-postgresql --db-username=keycloak --db-url-database=keycloak
Tmpfs=/opt/keycloak
Secret=KC_DB_PASSWORD,type=env
PublishPort=8000:8080
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,8 @@
[Container]
Image=docker.io/postgres:16-alpine
Network=postgresql.network
Volume=postgresql.volume:/var/lib/postgresql/data:U,Z
Secret=POSTGRES_PASSWORD,type=env
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,2 @@
[Network]
IPv6=true