systemd-service and updated testing modpack to 02102023 #1
@ -22,8 +22,11 @@ Replace `PORT` by the value you want to expose your app
|
|||||||
|
|
||||||
### Systemd service
|
### Systemd service
|
||||||
|
|
||||||
The repository contain a start.sh file to place in `/opt/launcher_json` folder, then place the launcher_json.service in `/etc/systemd/system` folder
|
The repository contain a systemd service file launcher_json.service to place in `/etc/systemd/system` folder, then create the `launcher` user:
|
||||||
and activate it using: `
|
|
||||||
|
`adduser launcher --disabled-password --disabled-login --no-create-home` and `usermod -a -G docker launcher`
|
||||||
|
|
||||||
|
Then activate the service using:
|
||||||
|
|
||||||
`systemctl enable --now launcher_json`
|
`systemctl enable --now launcher_json`
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
Description=Launcher_json Service
|
Description=Launcher_json Service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Non-root user
|
# Non-root user, create a new user first and it to docker group
|
||||||
User=www-data
|
User=launcher
|
||||||
# Workspace directory
|
# Workspace directory
|
||||||
# Path to Reposilite executable/script and its configuration.
|
# Path to Reposilite executable/script and its configuration.
|
||||||
ExecStart=/usr/bin/docker run -p 8090:8080 --restart unless-stopped -d launcher_json
|
ExecStart=/usr/bin/docker run -p 8090:8080 --restart unless-stopped -d launcher_json
|
||||||
|
Loading…
Reference in New Issue
Block a user