# vim: ft=systemd
[Unit]
Description=Self-hostable Minecraft server

[Container]
Image=papermc:1.21.10
EnvironmentFile=/etc/papermc/papermc.env
Pull=never

PodmanArgs=--tty

PublishPort=25565:25565

Volume=/data/papermc/config:/app/config
Volume=/data/papermc/worlds:/app/worlds
Volume=/data/papermc/backups:/app/backups
Volume=/data/papermc/cache:/app/config/cache

[Service]
Restart=always

[Install]
WantedBy=default.target
