borisb74

joined 1 year ago
[โ€“] borisb74@lemmy.world 1 points 1 year ago (1 children)

In addition, Before being able to execute docker-compose you have to add your user to the docker group by executing sudo usermod -aG docker pi

[โ€“] borisb74@lemmy.world 2 points 1 year ago (1 children)

Thanks for sharing the guide. However, I noticed to short commings.

  1. The right volumen mapping is /home/pi/spoolman/data:/home/app/.local/share/spoolman
  2. You missed defining the service for autostart. E.g,, for systemd it is:
[Unit]
Description=Spool Management
Documentation=https://github.com/Donkie/Spoolman
After=network-online.target
Before=moonraker.service
Wants=udev.target

[Install]
Alias=spoolman
WantedBy=multi-user.target

[Service]
Type=oneshot
User=pi
RemainAfterExit=yes
WorkingDirectory=/home/pi/spoolman
ExecStart=/usr/bin/env /usr/bin/docker-compose -f /home/pi/spoolman/docker-compose.yml up -d
ExecStop=/usr/bin/env /usr/bin/docker-compose -f /home/pi/spoolman/docker-compose.yml stop

You then enable and start the service:

sudo systemctl enable spoolman
sudo systemctl start spoolman