Ghostfolio is an open source wealth management software built with web technology. The application empowers busy people to keep track of stocks, ETFs or cryptocurrencies and make solid, data-driven investment decisions. In this step by step guide I will show you how to install Ghostfolio on your UGREENĀ NAS using Docker and Portainer.
Ghostfolio v2.161.0Ā release.
This guide works perfectly with the latestSTEP 1
Please Support My work by Making a Donation.
STEP 2
ā ļø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.
STEP 3
ā ļøMandatory: Update your UGREEN NAS Firmware to the latest version. Go to Control Panel / Update and update your NAS with the latest Firmware.
STEP 4
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 5
Go toĀ Files and open the docker folder. Inside the docker folder, create one new folder and name it ghostfolio. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 6
Now create two new folders inside the ghostfolio folder that you have previously created at STEP 5 and name them db and redis. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 7
Log into Portainer using your username and password. On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.
STEP 8
In the Name field type in ghostfolio. Follow the instructions in the image below.
services: ghostfolio-redis: image: redis:7 container_name: Ghostfolio-REDIS hostname: ghostfolio-redis security_opt: - no-new-privileges:true healthcheck: test: ["CMD-SHELL", "redis-cli ping || exit 1"] user: 999:10 environment: - TZ=Europe/Bucharest volumes: - /volume1/docker/ghostfolio/redis:/data:rw restart: on-failure:5 ghostfolio-db: image: postgres:17 container_name: Ghostfolio-DB hostname: ghostfolio-db security_opt: - no-new-privileges:true healthcheck: test: ["CMD", "pg_isready", "-q", "-d", "ghostfoliodb", "-U", "ghostfoliouser"] timeout: 45s interval: 10s retries: 10 volumes: - /volume1/docker/ghostfolio/db:/var/lib/postgresql/data environment: - POSTGRES_DB=ghostfoliodb - POSTGRES_USER=ghostfoliouser - POSTGRES_PASSWORD=ghostfoliopass restart: on-failure:5 ghostfolio: image: ghostfolio/ghostfolio:latest container_name: Ghostfolio hostname: ghostfolio security_opt: - no-new-privileges:true environment: - NODE_ENV=production - ACCESS_TOKEN_SALT=dOxZYTTZgXKMHkqLBIQVImayQXAVWdzGBPuFJKggzcgvgPJPXpWzqzKaUOIOGGIr - JWT_SECRET_KEY=EIYUphmqESmtPYsVHziPuBizgVflRtXuIrXypYfFEjkZAQUXwpwzspRwgFaQztlw - REDIS_HOST=ghostfolio-redis - REDIS_PASSWORD= - REDIS_PORT=6379 - DATABASE_URL=postgresql://ghostfoliouser:ghostfoliopass@ghostfolio-db:5432/ghostfoliodb?sslmode=prefer ports: - 8435:3333 restart: on-failure:5 depends_on: ghostfolio-db: condition: service_started ghostfolio-redis: condition: service_healthy
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.) 1026 is my personal UID value and 100 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.)
Note: Before you paste the code above in the Web editor area below, change the value for ACCESS_TOKEN_SALT. (Generate your own Random 64 length ACCESS_TOKEN_SALT.)
Note: Before you paste the code above in the Web editor area below, change the value for JWT_SECRET_KEY. (Generate your own Random 64 length JWT_SECRET_KEY.)
STEP 9
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 10
If everything goes right, you will see the following message at the top right of your screen: āSuccess Stack successfully deployedā.
STEP 11
š¢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 12
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:8435 If everything goes right, you will see the Ghostfolio main page. At the top right of the page, click Get started. Follow the instructions in the image below.
STEP 13
Click Create Account. Check the terms, then click Continue. Follow the instructions in the image below.
STEP 14
Copy the Security Token and save it in a safe place. Click Create Account. ā ļøNote: The Security Token is basically your password. If you lose it, you will no longer be able to access Ghostfolio. You will have to start the installation over from scratch in case you forget it. Follow the instructions in the image below.
STEP 15
Personalize Ghostfolio. At the top right of the page, you can personalize your Ghostfolio. Click the user icon, then My Ghostfolio, then change the settings according to your preferences. Follow the instructions in the image below.
Enjoy Ghostfolio on your UGREEN NAS!
Note: If you want to run the Ghostfolio container over HTTPS, check out How to Run Docker Containers Over HTTPS on Your UGREEN NAS.
This post was updated on Friday / May 16th, 2025 at 12:42 AM