2023-09-30 00:04:41 +02:00
|
|
|
# systemd service, to start the app at the launch of the system and restart it if it crash
|
|
|
|
[Unit]
|
|
|
|
Description=Launcher_json Service
|
|
|
|
|
|
|
|
[Service]
|
2023-09-30 16:25:44 +02:00
|
|
|
# Non-root user, create a new user first and it to docker group
|
|
|
|
User=launcher
|
2023-09-30 00:04:41 +02:00
|
|
|
# Workspace directory
|
|
|
|
# Path to Reposilite executable/script and its configuration.
|
2023-09-30 00:18:24 +02:00
|
|
|
ExecStart=/usr/bin/docker run -p 8090:8080 --restart unless-stopped -d launcher_json
|
2023-09-30 00:04:41 +02:00
|
|
|
# Policy
|
2023-09-30 00:15:48 +02:00
|
|
|
Type=oneshot
|
2023-09-30 00:04:41 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|