SensorsIot / IOTstack

Docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.42k stars 303 forks source link

Port conflict between heimdall and zigbee2mqtt_assistant (8880) #751

Closed nfelger closed 3 months ago

nfelger commented 4 months ago

Both containers seem to want to use port 8880. I'm new to IOTStack, so maybe I missed an option to configure ports (but I thought they should be conflict-free out-of-the-box).

Can we change one of them? Or is there another way I can fix this?

  heimdall:
    image: ghcr.io/linuxserver/heimdall
    container_name: heimdall
    environment:
    - PUID=1000
    - PGID=1000
    - TZ=Etc/UTC
    volumes:
    - ./volumes/heimdall/config:/config
    ports: 
    - 8880:80
    - 8883:443
    restart: unless-stopped
  ...
  zigbee2mqtt_assistant:
    container_name: zigbee2mqtt_assistant
    image: carldebilly/zigbee2mqttassistant
    restart: unless-stopped
    ports:
    - "8880:80"
    environment:
    - VIRTUAL_HOST=~^zigbee2mqtt_assistant\..*\.xip\.io
    - Z2MA_SETTINGS__MQTTSERVER=mosquitto
    - VIRTUAL_PORT=8880
Paraphraser commented 4 months ago

I recommend using 8882 for Heimdall. I'll put in a PR to change this (unless you want to submit the PR yourself). This is just one of those things that will happen from time to time because it's easy to forget to do the check when proposing a new container.