easypanel-io / templates

https://easypanel-templates.netlify.app/
125 stars 97 forks source link

Proxy for existing service #366

Open gorfreed opened 1 year ago

gorfreed commented 1 year ago

I have found Easypanel two weeks ago looking for an alternative for Caprover. While I first was impressed how quickly I was able to deploy apps and assign domains, I hit a blocker I am unable to solve.

I want to be able to run apps/services I have installed outside of Easypanel as it doesnt support many apps I am using and writing a schema template would be a bit time-consuming for me atm. For instance, I have installed Crater Invoicing app via docker-compose on command line. I originally assumed that the Proxy option in the Domains tab would now allow me to assign a subdomain to a port of my choosing, but unfortunately that doesnt work and is apparently reserved only for apps installed through the panel. I cannot use Certbot either as easypanel blocks the necessary ports to verify the via .well-known.

A proxy for apps installed externally seems like a pretty basic thing - am I overlooking something?

gorfreed commented 1 year ago

Any support would be much appreciated!

deiucanta commented 1 year ago

@gorfreed we use Traefik as the proxy. You could create a custom config file in Traefik and configure it to serve your external app.

To do that, create a new file in /etc/easypanel/traefik/config/custom.yaml. You can use the main config as an example on how to configure different hosts. Also, make sure to add the easypanel network to services in your docker-compose so that Traefik can access them.

gorfreed commented 1 year ago

I have to admit that I have no experience with using Traefik, I just know that it is often involved with Docker projects like this. Considering that I would frequently have to assign ports of tools I have not installed through Easypanel I am wondering whether there is are any options that are easier for me to manage. Caprover has a dockerized proxy pass via Nginx. I have no clue how that works exactly, but that satisfied that requirement. Is this possible on a technical level as well with Easypenel?

Supernova3339 commented 1 year ago

Hi Freed, you can assign via a custom traefik file.

On Fri, May 26, 2023 at 2:19 PM gorfreed @.***> wrote:

I have to admit that I have no experience with using Traefik, I just know that it is often involved with Docker projects like this. Considering that I would frequently have to assign ports of tools I have not installed through Easypanel I am wondering whether there is are any options that are easier for me to manage. Caprover has a dockerized proxy pass via Nginx. I have no clue how that works exactly, but that satisfied that requirement. Is this possible on a technical level as well with Easypenel?

— Reply to this email directly, view it on GitHub https://github.com/easypanel-io/templates/issues/366#issuecomment-1564469268, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJRAVGDOBL2BNTRHRDDXIC3XFANCNFSM6AAAAAAYJBVRPI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gorfreed commented 1 year ago

I am trying two wrap my head around it...... Am I on the correct path?

https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04