Initial import; migrate some roles from irl.wip
This commit is contained in:
commit
2ba6c6691b
44 changed files with 1573 additions and 0 deletions
34
roles/podman_nginx/templates/nginx.container
Normal file
34
roles/podman_nginx/templates/nginx.container
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[Unit]
|
||||
{% for req in podman_nginx_systemd_service_requires %}
|
||||
Requires={{ req }}.service
|
||||
After={{ req }}.service
|
||||
{% endfor %}
|
||||
{% if podman_nginx_systemd_service_target is defined %}
|
||||
PartOf={{ podman_nginx_systemd_service_target }}
|
||||
{% endif %}
|
||||
|
||||
[Container]
|
||||
ContainerName=nginx
|
||||
Image=docker.io/nginx:1
|
||||
{% if podman_nginx_frontend_network is defined %}Network={{ podman_nginx_frontend_network }}.network{% endif +%}
|
||||
PublishPort=80:80
|
||||
PublishPort=443:443
|
||||
Volume=/home/{{ podman_nginx_podman_rootless_user }}/certbot/www:/var/www/certbot/:ro,z
|
||||
Volume=/home/{{ podman_nginx_podman_rootless_user }}/certbot/conf/:/etc/letsencrypt/:ro,z
|
||||
Volume=/home/{{ podman_nginx_podman_rootless_user }}/nginx:/etc/nginx/conf.d/:ro,z
|
||||
|
||||
{% for item in podman_nginx_additional_volumes %}
|
||||
Volume={{ item.src }}:{{ item.dest }}:{{ item.options }}
|
||||
{% endfor %}
|
||||
|
||||
[Service]
|
||||
RuntimeMaxSec=604800
|
||||
Restart=always
|
||||
{% if podman_nginx_systemd_service_slice is defined %}
|
||||
Slice={{ podman_nginx_systemd_service_slice }}
|
||||
{% endif %}
|
||||
{% if podman_nginx_systemd_service_target is defined %}
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue