This commit is contained in:
parent
720beb07c4
commit
fa66c1c5cd
7 changed files with 16 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[Container]
|
||||
Network=postgresql.network
|
||||
Secret=POSTGRES_PASSWORD,type=env
|
|
@ -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
|
8
infra/etc/containers/systemd/postgresql.container
Normal file
8
infra/etc/containers/systemd/postgresql.container
Normal 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
|
2
infra/etc/containers/systemd/postgresql.network
Normal file
2
infra/etc/containers/systemd/postgresql.network
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Network]
|
||||
IPv6=true
|
0
infra/etc/containers/systemd/postgresql.volume
Normal file
0
infra/etc/containers/systemd/postgresql.volume
Normal file
Loading…
Add table
Reference in a new issue