This repository has been archived on 2025-09-06. You can view files and clone it, but cannot push or open issues/pull-requests.
home-assistant-yellow/yellow/overlay/etc/containers/systemd/nginx.container

27 lines
560 B
Plaintext

# vim: set ft=systemd :
[Unit]
After=network-online.target
Wants=network-online.target
Requires=gen-nginx-cert.service
[Container]
Image=docker.io/library/nginx
Network=host
Volume=/etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
Volume=/etc/nginx/conf.d:/etc/nginx/conf.d:ro
Volume=/etc/nginx/ssl:/etc/nginx/ssl:ro
Volume=/dev/log:/dev/log
User=82
Group=82
AddCapability=CAP_NET_BIND_SERVICE
ReadOnly=true
VolatileTmp=yes
[Service]
ProtectSystem=full
UMask=0077
ExecReload=/usr/bin/podman exec systemd-%N nginx -s reload
[Install]
WantedBy=multi-user.target