mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
feat: static web server for my blog website
This commit is contained in:
25
static-web-server/sws.container
Normal file
25
static-web-server/sws.container
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user