Let’s create a installation directory in our servers home folder
mkdir ~/sys-api && cd ~/sys-apiThen let’s create the config/ and data/ directories
mkdir config && mkdir dataThe server expects a configuration.yml in the configuration directory. Let’s download the latest one using wget
cd configwget https://raw.githubusercontent.com/Krillsson/sys-API/refs/heads/master/config/configuration.yml
wget https://raw.githubusercontent.com/Krillsson/sys-API/refs/heads/master/config/application.propertiesUse your favorite text editor to edit the user & password of the config
nano configuration.yml
Then press CTRL+X to exit nano (and press Y to save)
Now we can download the latest docker-compose.yml and make our edits to it using nano
wget https://raw.githubusercontent.com/Krillsson/sys-API/master/docker-compose.ymlRemember to swap out the volume mounts for the config/ and data/ directories
Want to monitor the temperature of disks? Each disk you’d like to monitor has to be added to a devices section in the compose file. List disks on your system using the command lsblk –nodeps -n -o name
devices:
- "/dev/sda:/dev/sda"Then we can start the container
docker compose -f docker-compose.yml upLet’s verify the server started correctly
docker logs --follow --tail 200 sys-apiIf you see this message without any error after it. That means the server is up and running
[...]: Tomcat started on ports 8443 (https), 8080 (http) with context path '/'
[...]: Started SysAPIApplicationKt in 6.352 seconds (process running for 7.234) Now you are ready to proceed to next step
