DyonR / docker-Jackettvpn

Docker container which runs a headless Jackett Server with an optional WireGuard or OpenVPN connection
https://hub.docker.com/r/dyonr/jackettvpn/
GNU General Public License v3.0
68 stars 32 forks source link

Another port #70

Open urtaevS opened 1 year ago

urtaevS commented 1 year ago

How i can use another port? If i set some port on create container nothing happens. Or i need build image from Dockerfile with another port?

DyonR commented 1 year ago

It sounds like you have not a lot of experience with Docker, which is no problem! I glady help you. However, I am not in the situation that I can write a fully explanation, but to give you a direction. It's related to 'exposed ports'. If you use docker run, it's related to the -p. Jackett internally always uses port 9117 but if you want to access it from another port you need to change the exposed port. If you want to access it on port 1468 for example use -p 1468:9117.

Hope this helps a bit for now

urtaevS commented 1 year ago

It sounds like you have not a lot of experience with Docker, which is no problem! I glady help you. However, I am not in the situation that I can write a fully explanation, but to give you a direction. It's related to 'exposed ports'. If you use docker run, it's related to the -p. Jackett internally always uses port 9117 but if you want to access it from another port you need to change the exposed port. If you want to access it on port 1468 for example use -p 1468:9117.

Hope this helps a bit for now

Yeah, just learning docker Oh! Think I get it. 1468 - host machine port 9117 - port inside docker container And with this settings url will be like this: http://{IP}:1468 That's right?