请问如何基于下方的docker配置,进行单服务器多实例负载均衡搭建?

volumes:
mongodb_data: { driver: local }

services:
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:7.7.1
restart: always
labels:
traefik.enable: “true”
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:-meteor}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs5}}”
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://localhost:${HOST_PORT:-3000}}
PORT: ${PORT:-3000}
DEPLOY_METHOD: docker
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-}
REG_TOKEN: ${REG_TOKEN:-}
depends_on:
- mongodb
expose:
- ${PORT:-3000}
ports:
- “${BIND_IP:-0.0.0.0}:${HOST_PORT:-3000}:${PORT:-3000}”

mongodb:
image: docker.io/bitnami/mongodb:7.0.8
restart: always
volumes:
- mongodb_data:/bitnami/mongodb
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs5}
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
ports:
- “127.0.0.1:27017:27017”

English only.

How can I set up a single-server multi-instance load balancing system based on the docker configuration below?

You can’t. It is a single server setup. You will need a bespoke setup.