Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing port in docker? v2 #165

Open
ZippoD opened this issue Oct 17, 2023 · 2 comments
Open

Changing port in docker? v2 #165

ZippoD opened this issue Oct 17, 2023 · 2 comments

Comments

@ZippoD
Copy link

ZippoD commented Oct 17, 2023

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
Copy link

JBlond commented Dec 27, 2023

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
Copy link

it seems one can specify environment variables to change various options

  • "YDL_FORMAT": "bestvideo+bestaudio/best"
  • "YDL_EXTRACT_AUDIO_FORMAT": None
  • "YDL_EXTRACT_AUDIO_QUALITY": "192"
  • "YDL_RECODE_VIDEO_FORMAT": None
  • "YDL_OUTPUT_TEMPLATE": "/youtube-dl/%(title).200s [%(id)s].%(ext)s" (see available parameters)
  • "YDL_ARCHIVE_FILE": None
  • "YDL_SERVER_HOST": "0.0.0.0"
  • "YDL_SERVER_PORT": 8080
  • "YDL_UPDATE_TIME": "True"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants