manbearwiz / youtube-dl-server

Web / REST interface for downloading youtube videos onto a server.
MIT License
878 stars 283 forks source link

Changing port in docker? v2 #165

Open ZippoD opened 11 months ago

ZippoD commented 11 months ago

Hi, So there was a case already for this question, but the resolution was to re-map the container port (8080) to a different port on the host, which is not the same thing. That doesn't work when containers are routed thru another container network (e.g. VPN), because port mapping needs to be done by the VPN container (and when there is more than one container requiring 8080 there is a conflict). Any way to actually change the web port from default 8080 to something else?

JBlond commented 8 months ago

You can use the ports

version: "3.9"
services:
  youtube-dl:
    image: "kmb32123/youtube-dl-server"
    network_mode: "service:vpn"
    volumes:
      - ./down:/youtube-dl
    restart: unless-stopped
    ports:
      - "99:8080"
ericblade commented 7 months ago

it seems one can specify environment variables to change various options