Run container with uvicorn, move templates for packaging, add systemd config for container deployment, add OIDC_TEST_SETTINGS_FILE env var for setting, misc fixes
This commit is contained in:
parent
170e663ee8
commit
57681d91fe
12 changed files with 146 additions and 49 deletions
11
deployment/systemd/oidc-fastapi-test.container
Normal file
11
deployment/systemd/oidc-fastapi-test.container
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Container]
|
||||
ContainerName=oidc-fastapi-test
|
||||
Image=code.philo.ydns.eu/philorg/oidc-fastapi-test:latest
|
||||
Pod=oidc-fastapi-test.pod
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
3
deployment/systemd/oidc-fastapi-test.network
Normal file
3
deployment/systemd/oidc-fastapi-test.network
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Network]
|
||||
NetworkName=oidc-fastapi-test
|
||||
Label=app=oidc-fastapi-test
|
11
deployment/systemd/oidc-fastapi-test.pod
Normal file
11
deployment/systemd/oidc-fastapi-test.pod
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Pod]
|
||||
PodName=oidc-fastapi-test
|
||||
Network=oidc-fastapi-test.network
|
||||
PublishPort=8873:80
|
||||
|
||||
[Unit]
|
||||
After=podman-user-wait-network-online.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue