Install on a VPS with Portainer and Subdomain

I want to create a VPS server and run Docker on it.

I’d like to use Portainer to manage two containers: one for the InvoiceNinja app and another for WordPress. I want to set up a domain and a subdomain. The domain should point to the WordPress container, and the subdomain to InvoiceNinja. For example, invoice.mydomain.at should lead to InvoiceNinja, and mydomain.at to WordPress. However, I’m having trouble setting this up.

Currently, I’m testing it on a local VM Ubuntu machine, but I’m struggling to get it working with Portainer.
(Via Terminal and local installation → no Problem.) Ultimately, I want to work with a stack directly from Git. However, this approach isn’t working for me. Does anyone have a guide on how to create a stack and install InvoiceNinja through Portainer?

There are four ways to create a stack: WebEditor, Upload, Repository, and CustomTemplate. I’ve tried all four methods, but unfortunately, I haven’t had any success. Ultimately, I watched a video by Navigio, who created three folders and then uploaded them. Jürgen Barth, who uses Portainer, might have some insights into this.

Everytime i try to use ´the compile file it make an error. Deployment error
Screenshot 2024-04-15 163025
Must i create vollumes first?

https://github.com/invoiceninja/dockerfiles

https://www.youtube.com/watch?v=mJmMFjS56R8

https://hub.docker.com/r/invoiceninja/invoiceninja

Can somebody help me pls?

Thank you, Nico.

Hi,

Sorry, I don’t have experience with this setup.

1 Like