How to Install Invoice Ninja on Your UGREEN NAS

How to Install Invoice Ninja on Your UGREEN NAS

Invoice Ninja is a leading platform for freelancers & SMB’s to invoice clients, accept payments, track expenses & time-billable tasks. Invoicing, Quotes, Expenses, Tasks. Built with Laravel, Flutter and React. In this step by step guide I will show you how to install Invoice Ninja on your UGREEN NAS using Docker & Dockhand.

šŸ’”Note:Ā This guide works perfectly with the latest version of Invoice Ninja v5.13.22

šŸ’”Note: Check out my guide on how to Install Invoice Ninja on Your Synology NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

InstallĀ Dockhand using my step by step guide. If you already have Dockhand installed on your UGREEN NAS, skip this STEP. Attention: Make sure you have installed the latest Dockhand version.

  • STEP 3

āš ļøMandatory: Enable HTTPS on your UGREEN NAS.

  • STEP 4

Create a new hostname on the noip website using your noip account. For example, I have created mariusectusĀ as Host and I use the free ddns.net domain. In the IP Address area, type in your own IPV4 IP address from your ISP, then click Create. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 1

  • STEP 5

āš ļøMandatory: Add Read & Write Permissions to the Docker Folder.

  • STEP 6

Go toĀ Files and open the docker folder. Inside the docker folder, create one new folder and name itĀ invoiceninja. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Invoice Ninja UGREEN NAS Set up 2

  • STEP 7

Now create four new folders inside the invoiceninja folder that you created at STEP 6Ā and name them db, public, redis, storage. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Invoice Ninja UGREEN NAS Set up 3

  • STEP 8

Download (click on the blue link below) then upload the in-vhost.conf file below in the invoiceninja folder that you have previously created at STEP 6. Follow the instructions in the image below. šŸ”’Note: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!

šŸ‘‰šŸ»Download in-vhost.conf

Invoice Ninja UGREEN NAS Set up 4

  • STEP 9

Follow my step by step guide on how to activate SMTP for your Gmail account. This step is mandatory. Note: If you don’t want to use the easiest way for SMTP with Google and you already have SMTP details from your own Mail Server, you can just skip this STEP and use your personalized email SMTP details instead.

  • STEP 10

Open your browser and type in http://ugreen-ip-address:3866 to connect to your Dockhand container. On the left sidebar, click Stacks then + Create. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 5

  • STEP 11

In the Stack name field, type in invoiceninja. āš ļøWarning: Type in the name in lowercase letters. The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Follow the instructions in the image below.

Note: Copy Paste the code below in the Dockhand Compose Stack then click Create & Start.

services:
  redis:
    image: redis
    command:
      - /bin/sh
      - -c
      - redis-server --requirepass redispass
    container_name: InvoiceNinja-REDIS
    hostname: invoiceninja-redis
    security_opt:
      - no-new-privileges:true
    read_only: false
    user: 999:10
    healthcheck:
      test: ["CMD-SHELL", "redis-cli ping || exit 1"]
    volumes:
      - /volume1/docker/invoiceninja/redis:/data:rw
    environment:
      TZ: Europe/Bucharest
    restart: on-failure:5

  db:
    image: mysql:8
    container_name: InvoiceNinja-DB
    hostname: db
    user: 999:10
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: mysqladmin -p$$MYSQL_ROOT_PASSWORD ping -h localhost
      interval: 20s
      start_period: 10s
      timeout: 10s
      retries: 3
    environment:
        TZ: Europe/Bucharest
        MYSQL_ROOT_PASSWORD: ninjapass
        MYSQL_DATABASE: invoiceninja
        MYSQL_USER: ninjauser
        MYSQL_PASSWORD: ninjapass
    volumes:
      - /volume1/docker/invoiceninja/db:/var/lib/mysql:rw
    restart: on-failure:5

  invoiceninja:
    image: invoiceninja/invoiceninja-debian:latest
    container_name: InvoiceNinja
    hostname: invoiceninja
    user: 0:0
    healthcheck:
      test: stat /etc/passwd || exit 1
    volumes:
      - /volume1/docker/invoiceninja/public:/var/www/html/public
      - /volume1/docker/invoiceninja/storage:/var/www/html/storage
    environment:
      APP_NAME: Invoice Ninja
      APP_ENV: production
      APP_KEY: base64:nQhdYqmk7FNh9S/OMpWO/y3SDOkD1XxvvRMltw6kSJU=
      APP_DEBUG: false
      APP_URL: https://mariusninja.ddns.net
      IN_USER_EMAIL: yourown@email
      IN_PASSWORD: mariushosting
      REQUIRE_HTTPS: true
      TRUSTED_PROXIES: "*"
      IS_DOCKER: true
      QUEUE_CONNECTION: redis
      DB_HOST: db
      DB_CONNECTION: mysql
      DB_PORT: 3306          
      DB_DATABASE: invoiceninja
      DB_USERNAME: ninjauser
      DB_PASSWORD: ninjapass
      DB_ROOT_PASSWORD: ninjapass
      CACHE_DRIVER: redis
      SESSION_DRIVER: redis
      REDIS_HOST: invoiceninja-redis
      REDIS_PASSWORD: redispass
#      PHANTOMJS_KEY='a-demo-key-with-low-quota-per-ip-address'
#      PHANTOMJS_SECRET=password
      PHANTOMJS_PDF_GENERATION: false
      PDF_GENERATOR: snappdf
      MAIL_MAILER: smtp
      MAIL_HOST: smtp.gmail.com
      MAIL_PORT: 587
      MAIL_USERNAME: Your-own-gmail-address
      MAIL_PASSWORD: Your-own-app-password
      MAIL_ENCRYPTION: STARTTLS
      MAIL_FROM_ADDRESS: Your-own-gmail-address
      MAIL_FROM_NAME: Invoice
      #ERROR_EMAIL: error@mail.com # Error emails are sent to this email
    restart: on-failure:5
    depends_on:
      redis:
        condition: service_healthy
      db:
        condition: service_healthy

  nginx:
    image: nginx:alpine
    container_name: InvoiceNinja-NGINX
    hostname: invoiceninja-nginx
    command: sh -c "chmod -R 777 /var/www/html/public && nginx -g 'daemon off;'"
    security_opt:
      - no-new-privileges:false
    healthcheck:
      test: curl -f http://localhost:80/ || exit 1
    ports:
      - 5485:80
    volumes:
      - /volume1/docker/invoiceninja/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf
      - /volume1/docker/invoiceninja/public:/var/www/html/public
    restart: on-failure:5
    depends_on:
      invoiceninja:
        condition: service_started

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 Stack 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 Stack editor area below, change the value for APP_KEY.Ā (Generate your own free APP KEY.)
Note: Before you paste the code above in the Stack editor area below, change the value for APP_URL and type in your own NO IP DDNS withĀ https:// at the beginning that you have previously created at STEP 4.
Note: Before you paste the code above in the Stack editor area below, change the value for IN_USER_EMAIL and type in your own administrator email address. You will need this email at STEP 16.
Note: Before you paste the code above in the Stack editor area below, change the value for IN_PASSWORD and type in your own administrator password. mariushosting is an example for a password. You should type in your own password. You will need this password at STEP 16.
Note: Before you paste the code above in the Stack editor area below, change the value for MAIL_USERNAMEĀ and type in your own Gmail address. STEP 9.
Note: Before you paste the code above in the Stack editor area below, change the value for MAIL_PASSWORDĀ and type in your own Gmail app password. STEP 9. āš ļøWarning: Do NOT confuse with your own Gmail password. This is the Gmail APP password.
Note: Before you paste the code above in the Stack editor area below, change the value for MAIL_FROM_ADDRESSĀ and type in your own Gmail address. STEP 9.

Invoice Ninja UGREEN NAS Set up 6

  • STEP 12

Open your Nginx Proxy Manager container that you have previously installed at STEP 3. Click Add Proxy Host. A new pop up window will open. Add the following details:

Domain Names: Type in your own noip domain name that you have previously created at STEP 4.
Scheme: http
Forward Hostname/IP: Type in the local NAS IP of your UGREEN NAS.
Forward Port: Type in the Directus local Port that is 5485
Check Block Common Exploits
Check Websockets Support
Click the SSL tab. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 7

  • STEP 13

After you click the SSL tab, add the following details:

SSL Certificate: Request a new SSL Certificate
Check: Force SSL
Check: HSTS Enabled
Check: HTTP/2 Support
Click Save. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 8

  • STEP 14

In the Proxy Hosts area, if everything goes right, you will see that your hostname has been generated. Click on it. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 9

  • STEP 15

🟢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 16

Please waitĀ approximately 2 minutes for the installation to be completed or you will get a 502 bad gateway page. Now open your browser and type in your HTTPS/SSL certificate like this https://yourname.ddns.netĀ In my case it’s https://mariusectus.ddns.net If everything goes right, you will see the Invoice Ninja login page. Type in your own Email (IN_USER_EMAIL) and Password (IN_PASSWORD) that you have previously created at STEP 11Ā then click Login.Ā Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 10

  • STEP 17

Set up your Company Name, Language and Currency. Click Save. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 11

  • STEP 18

Switch the theme to Dark. Follow the instructions in the image below.

Invoice Ninja UGREEN NAS Set up 12

Enjoy Invoice Ninja on Your UGREEN NAS!

šŸ†˜TROUBLESHOOTING

šŸ†™Note/Update/Container: How to Update Your Docker Containers on UGREEN NAS Using Dockhand. STEP 28.
🐳Note: How to Create Docker Shortcuts on Desktop.
šŸ†•Note: How to Update Dockhand to the latest version.
šŸ†•Note: How to Clean Docker.

This post was updated on Tuesday / May 26th, 2026 at 11:38 PM

No sponsors, no corporations, no ads, no subscriptions, no membership tiers, no referral links, no pop-ups, no cookies, no tracking code. Just pure guides for the community from Marius.