
Spoolman is a web service that helps you keep track of your filament spools and how they are being used. It acts as a database where other printer software such as Octoprint and Moonraker can interact with to have a centralized place for spool information. For example, if used together with Moonraker, your spool weight will automatically be reduced as your print is progressing. In this step by step guide I will show you how to install SpoolmanĀ on your UGREEN NAS using Docker & Portainer.
This guide works perfectly with the latest Spoolman v0.22.1Ā release.
STEP 1
Please Support My work by Making a Donation.
STEP 2
InstallĀ Portainer using my step by step guide. If you already have Portainer installed on your UGREEN NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.
STEP 3
Go toĀ Files and open the docker folder. Inside the docker folder, create one new folder and name itĀ spoolmanĀ Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

STEP 4
Now create two new folders inside the spoolman folder that you have previously created at STEP 3 and name them data andĀ db. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

STEP 5
Log into Portainer using your username and password. On the left sidebar in Portainer, click onĀ HomeĀ thenĀ Live connect. Follow the instructions in the image below.

On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

STEP 6
In the Name field type in spoolman. Follow the instructions in the image below.
services:
db:
image: postgres:18
container_name: Spoolman-DB
hostname: spoolman-db
security_opt:
- no-new-privileges:true
user: 999:10
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "spoolman", "-U", "spoolmanuser"]
timeout: 45s
interval: 10s
retries: 10
volumes:
- /volume1/docker/spoolman/db:/var/lib/postgresql:rw
environment:
POSTGRES_DB: spoolman
POSTGRES_USER: spoolmanuser
POSTGRES_PASSWORD: spoolmanpass
restart: on-failure:5
spoolman:
image: ghcr.io/donkie/spoolman:latest
container_name: Spoolman
hostname: spoolman
security_opt:
- no-new-privileges:true
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8000/
ports:
- 7912:8000
environment:
SPOOLMAN_DB_TYPE: postgres
SPOOLMAN_DB_HOST: spoolman-db
SPOOLMAN_DB_PORT: 5432
SPOOLMAN_DB_NAME: spoolman
SPOOLMAN_DB_USERNAME: spoolmanuser
SPOOLMAN_DB_PASSWORD: spoolmanpass
PUID: 999
PGID: 10
TZ: Europe/Bucharest
FORWARDED_ALLOW_IPS: "*"
SPOOLMAN_DEBUG_MODE: TRUE
volumes:
- /volume1/docker/spoolman/data:/home/app/.local/share/spoolman:rw
depends_on:
db:
condition: service_healthy
restart: on-failure:5
Note: Before you paste the code above in the Web editor area below, change the value numbers for user with your own UID and GID values. (Follow my step by step guide on how to do this.) 999 is my personal UID value and 10Ā is my personal GID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the value numbers for PUID and PGIDĀ with your own values. (Follow my step by step guide on how to do this.) 999 is my personal UID value and 10Ā is my personal GID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the value for TZ.Ā (Select your current Time Zone from this list.)

STEP 7
Scroll down on the page until you see a button namedĀ Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

STEP 8
If everything goes right, you will see the following message at the top right of your screen: āSuccess Stack successfully deployedā.

STEP 9
š¢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. Iāve been very honest about this aspect of my work since the beginning: I donāt run any ADS, I donāt require subscriptions, paid or otherwise, I donāt collect IPs, emails, and I donāt have any referral links from Amazon or other merchants. I also donāt have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. Itās something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.
STEP 10
The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser andĀ type in http://ugreen-ip-address:7912Ā Follow the instructions in the image below.

Enjoy Spoolman on your UGREEN NAS!
Note: If you want to run the Spoolman container over HTTPS, check out How to Run Docker Containers Over HTTPS on Your UGREEN NAS.
ā ļøMandatory Add Read & Write Permissions to the Docker Folder. If you have already added the Read and Write Permissions to the Docker Folder, skip this STEP.
šNote/Update/Container: How to Update Your Docker Containers on UGREEN NAS Using Portainer.
š³Note: How to Create Docker Shortcuts on Desktop.
šNote: How to Update Portainer to the latest version.
šNote: How to Clean Docker.
This post was updated on Sunday / January 4th, 2026 at 8:42 PM