-
Notifications
You must be signed in to change notification settings - Fork 11
Example ‐ Butane Config
Nicholas Westerhausen edited this page Apr 11, 2024
·
2 revisions
An example butane file, ready for ignition. This is extremely basic and exposes the server on HTTP port 80 of the core server.
# domain-monitor.butane
variant: fcos
version: 1.5.0
storage:
links:
# Enable podman to auto-update containers
- path: /etc/systemd/timers.target.wants/podman-auto-update.timer
target: /usr/lib/systemd/user/podman-auto-update.timer
files:
# Config Volumes
- path: /etc/containers/systemd/domain-monitor.volume
contents:
local: volumes/domain-monitor.volume
# Containers
- path: /etc/containers/systemd/domain-monitor.container
contents:
local: quadlets/domain-monitor.container
# domain-monitor.volume
[Volume]
# domain-monitor.container
[Unit]
Description=Domain Monitor Quadlet
After=network-online.target
[Container]
Image=ghcr.io/nwesterhausen/domain-monitor
ContainerName=domain-monitor
AutoUpdate=registry
EnvironmentFile=/etc/containers/common-environment
PublishPort=80:3124
Volume=domain-monitor.volume:/app/data
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target multi-user.target