feat: static web server for my blog website

This commit is contained in:
CoolnsX
2025-05-23 22:10:04 +05:30
parent 2e94af2543
commit 9b000c6e55
2 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
[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