mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
26 lines
506 B
Plaintext
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
|
|
|