Changing docker port

Description

I need to change the exposed port. I am using the default compose file.

Server Setup Information

  • Version of Rocket.Chat Server: 6.5
  • Operating System: ubuntu
  • Deployment Method: docker
  • Number of Running Instances: 2
  • DB Replicaset Oplog: NA
  • NodeJS Version: NA
  • MongoDB Version: NA
  • Proxy: NPM
  • Firewalls involved: OpnSense

additional Information

I am trying to run a second instance of RC on my docker host. I am not a docker expert and the default compose file is a little confusing and different from what I am use to seeing. I have changed several lines in the compose file from 3000 to 3001, but when I do. The containers do start, but I can’t access them with 3001 or 3000. What am I doing wrong here. Below is a snip of the compose file.

volumes:
mongodb_data: { driver: local }

services:
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest}
restart: always
labels:
traefik.enable: “false”
traefik.http.routers.rocketchat.rule: Host(${DOMAIN:-})
traefik.http.routers.rocketchat.tls: “true”
traefik.http.routers.rocketchat.entrypoints: https
traefik.http.routers.rocketchat.tls.certresolver: le
environment:
MONGO_URL: “${MONGO_URL:-
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}”
MONGO_OPLOG_URL: “${MONGO_OPLOG_URL:
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}”
ROOT_URL: ${ROOT_URL:-http://mydomain.vom:${HOST_PORT:-3001}}
PORT: ${PORT:-3001}
DEPLOY_METHOD: docker
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-}
REG_TOKEN: ${REG_TOKEN:-}
depends_on:
- mongodb
expose:
- ${PORT:-3001}
ports:
- “${BIND_IP:-192.168.1.55}:${HOST_PORT:-3001}:${PORT:-3000}”