1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 07:16:20 +00:00
Lakka-LibreELEC/packages/addons/service/docker/source/examples/couchpotato.service
2016-04-06 14:16:58 -07:00

23 lines
639 B
Desktop File

[Unit]
Description=%p container
Requires=service.system.docker.service
After=service.system.docker.service
[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /storage/%p/config /storage/%p/data"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \
--rm \
--name=%p \
--hostname=libreelec-%p \
--volume=/storage/%p/config:/config \
--volume=/storage/%p/data:/data \
--publish=5050:5050 \
timhaak/%p
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop %p
[Install]
WantedBy=multi-user.target