Files
selfhost_podman/static-web-server/sws.container
2025-05-23 22:10:04 +05:30

26 lines
506 B
Plaintext

[Unit]
Description=Static Web Server Container
[Container]
Pod=nginx-proxy.pod
ContainerName=my-website
Image=ghcr.io/static-web-server/static-web-server:latest
# Enable auto-update container
AutoUpdate=registry
# pass this to attach it to container
Environment=SERVER_ROOT=/var/my-website/public
Environment=SERVER_CONFIG_FILE=/etc/config.toml
Volume=%h/my-website:/var/my-website
Volume=./config.toml:/etc/config.toml
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target