openpanel icon indicating copy to clipboard operation
openpanel copied to clipboard

It may be an error in the document. I have started it according to the document, but there is no

Open fre2d0m opened this issue 3 months ago • 6 comments

I successfully started the container according to this document: https://openpanel.dev/docs/self-hosting/self-hosting

docker ps It looks like this.:

Image

But the next step can't be continued, because the 3000 port is not open. If it is deliberately designed, how should I put it behind my reverse proxy in the next step?

fre2d0m avatar Sep 26 '25 16:09 fre2d0m

Good catch, since the default proxy has access to each service I never exposed any ports. You can easily fix this by adjusting your docker-compose.yml and expose 3000 for both (but one of them needs to listen on 3001 or something else.

I'll add a ticket to update the wizard to handle this and add documentation on it.

lindesvard avatar Sep 26 '25 18:09 lindesvard

Good catch, since the default proxy has access to each service I never exposed any ports. You can easily fix this by adjusting your docker-compose.yml and expose 3000 for both (but one of them needs to listen on 3001 or something else.

I'll add a ticket to update the wizard to handle this and add documentation on it.

If you have created the ticket or have the specs ready i can contribute on that

diopisemou avatar Sep 26 '25 18:09 diopisemou

And what is the difference between the /api path in the dashboard and the /api path in the api service? I noticed that both services have the same /api prefix, which leads to the fact that I can only use different domain names to use dashboard and tracker api. Question mark

If my understanding is correct, then in the setup.sh link, the user needs to enter 2 domain names instead of 1. e.g. dashboard.domain.com and api.domain.com

fre2d0m avatar Sep 27 '25 08:09 fre2d0m

And what is the difference between the /api path in the dashboard and the /api path in the api service? I noticed that both services have the same /api prefix, which leads to the fact that I can only use different domain names to use dashboard and tracker api. Question mark

dashboards api is just for internal health check for docker.

If my understanding is correct, then in the setup.sh link, the user needs to enter 2 domain names instead of 1. e.g. dashboard.domain.com and api.domain.com

Since you have different setup (your own proxy) everything is a bit different. Our setup only needs one domain (to make is simpler)

domain.com/api* -> Proxies everything to api domain.com/* -> Everything else goes to the dashboard

And since you (I assume) have choosen sub domains instead of one domain + sub path your setup is different from ours.

Thats why you need to provide different apiUrl etc

lindesvard avatar Sep 28 '25 11:09 lindesvard

Help, I need help. The deployed docker container is shown in the figure below:

Image

If I want to create a reverse proxy as an entrance, how should I open the port correctly and configure the proxy?

The current reverse proxy is as follows:

  • analytics.domain.com/api/* --> :49000
  • analytics.domain.com --> :49001

fre2d0m avatar Sep 29 '25 10:09 fre2d0m

Thats looks correct to me. Whats your issue exactly? What do you get when you visiting analytics.domain.com/api/ and analytics.domain.com?

Below is how our Caddy proxy looks like:

$DOMAIN_NAME {
    encode gzip
    
    handle_path /api* {
        reverse_proxy op-api:3000
    }

    reverse_proxy /* op-dashboard:3000
}

lindesvard avatar Sep 30 '25 20:09 lindesvard