16 lines
538 B
Django/Jinja
16 lines
538 B
Django/Jinja
[Unit]
|
|
Description=VoxeLibre Server
|
|
|
|
[Container]
|
|
Image={{ salt['pillar.get']('voxelibre:image:path', 'codeberg.org/elouin/voxelibre') }}:{{ salt['pillar.get']('voxelibre:image:version', '0.87.2-1') }}
|
|
Volume=voxelibre.volume:/var/lib/minetest/.minetest/worlds
|
|
PublishPort={{ salt['pillar.get']('voxelibre:port', "30000") }}:30000/udp
|
|
{% for option, value in pillar.get('voxelibre:config', {}).items() %}
|
|
Environment={{ option }}={{ value }}
|
|
{% endfor %}
|
|
|
|
[Service]
|
|
TimeoutStartSec=900
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|