• 0 Posts
  • 2 Comments
Joined 8 months ago
cake
Cake day: October 22nd, 2023

help-circle

  • 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