
Environment= keys in quadlets are populated before Secret= is added to the container environment, I think. This may be why the podman secret for the db pw is empty in the database url string. EnvironmentFile will probably have the same issue, so right now my poc system is using the password in plaintext. plsfix
20 lines
346 B
Text
20 lines
346 B
Text
[Unit]
|
|
Description=Linkwarden database
|
|
Wants=linkwarden.service
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
TimeoutStartSec=900
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Container]
|
|
Image=docker.io/postgres:16-alpine
|
|
ContainerName=linkwarden-database
|
|
HostName=linkwarden-database
|
|
|
|
Volume=linkwarden-database:/var/lib/postgresql/data
|
|
|
|
EnvironmentFile=linkwarden.env
|
|
|