mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
aafa8d9f12
This will help make subsequent synchronization with hosts easier, as systemd files and potential dropins are guarnateed to exist under a certain hierarchy that can be dropped as-is into host configuration directories.
21 lines
957 B
Desktop File
21 lines
957 B
Desktop File
[Unit]
|
|
Description=Nginx ingress controller
|
|
Wants=container-build@nginx.service container-network@ingress.service
|
|
After=container-build@nginx.service container-network@ingress.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
ExecStartPre=/bin/install --owner 10000 --group 10000 -d /var/lib/container-service/letsencrypt/private
|
|
ExecStartPre=/bin/install -d /var/lib/container-service/%N/conf.d
|
|
ExecStartPre=/bin/podman create --replace --pull never --net ingress \
|
|
--publish 80:80 --publish 443:443 \
|
|
--volume /var/lib/container-service/letsencrypt/private:/etc/ssl/private:z \
|
|
--volume /var/lib/container-service/%N/conf.d:/etc/nginx/conf.d:z \
|
|
--name %N localhost/nginx:latest
|
|
ExecStart=/bin/podman start --attach %N
|
|
ExecStop=/bin/podman stop --time 10 %N
|
|
ExecReload=/bin/podman exec %N nginx -s reload
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|