mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-19 14:12:08 +00:00
27 lines
791 B
Desktop File
27 lines
791 B
Desktop File
[Unit]
|
|
Description=%p container
|
|
Requires=service.system.docker.service
|
|
After=service.system.docker.service
|
|
Befora=kodi.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/:/etc/mysql/conf.d \
|
|
--volume=/storage/%p/data:/var/lib/mysql \
|
|
--publish=3306:3306 \
|
|
--env=MYSQL_ROOT_PASSWORD=libreelec \
|
|
--env=MYSQL_USER=kodi \
|
|
--env=MYSQL_PASSWORD=kodi \
|
|
%p
|
|
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop %p
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|