2024-11-10 14:34:49 +01:00
|
|
|
[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
|
2024-11-10 17:17:11 +01:00
|
|
|
{% for option, value in salt['pillar.get']('voxelibre:config').items() %}
|
2024-11-10 14:34:49 +01:00
|
|
|
Environment={{ option }}={{ value }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=900
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target default.target
|