# https://monitee.app/get-started/ services: sys-api: container_name: sys-api image: krillsson/sys-api:latest mem_limit: 1g cpus: 0.3 # al max 40% cpu ports: - 127.0.0.1:9999:8080 pid: "host" volumes: # change "/path/to/*" point to a directory on your machine - ./data:/data - ./config:/config # socket for docker management API. - /var/run/docker.sock:/var/run/docker.sock # to read device names from disks - /run/udev:/run/udev:ro # to control systemd - /run/systemd:/run/systemd # to read journal logs - /etc/machine-id:/etc/machine-id:ro - /run/systemd/journal/socket:/run/systemd/journal/socket:ro - /run/log/journal:/run/log/journal:ro # to allow sys-API access to read hdd's # alternatively mount in each device you'd like to monitor - /dev:/dev:ro # same as above - /srv:/srv:ro restart: unless-stopped