fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
939 stars 29 forks source link

Change listening port #320

Closed IIIdefconIII closed 10 months ago

IIIdefconIII commented 10 months ago

HI,

I have multiple containers runing, one, like homepage runs on port 3000 already, how can i change this? in the docker compose changing to another port doesnt work cause its hard coded

Thanks!

fmartinou commented 10 months ago

Hi,

It's not hard-coded; there is an environment variable to provide the port to bind.

The related documentation: https://fmartinou.github.io/whats-up-docker/#/configuration/server/

The related example: https://fmartinou.github.io/whats-up-docker/#/configuration/server/?id=set-http-listener-port-to-8080

Then just map this container port to the host port you wish 🙂 .

IIIdefconIII commented 10 months ago

Thanks for the quick respons. I could find this earlier and I Will implent this later today

IIIdefconIII commented 10 months ago

Thanks, got it working!

  wud:
    container_name: wud
    image: fmartinou/whats-up-docker:latest
    restart: always
    security_opt:
      - no-new-privileges:true
    ports:
      - 8085:8085
    environment:
      PUID: $PUID
      PGID: $PGID
      UMASK: $UMASK   
      TZ: Europe/Amsterdam
      WUD_SERVER_PORT: 8085         
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro 
    labels:
      ## Pullio
      org.hotio.pullio.notify: "true"
      org.hotio.pullio.update: "true"
IIIdefconIII commented 10 months ago

image

IIIdefconIII commented 10 months ago

!archive