Multiple NS and AS

In my case,i hvae multiple ns(CN470 and AS923) ,but i use the same database,

and add ns failed (object already exists, code 6 )

e.g:
two ns (CN470,AS923)
two mqtt-broker(470broker,923broker)
two as(CN470,AS923)
one redis
one database

Is the way I am using it wrong?

other:
docker install loraserver
loraserver version : 3.x

My docker-compose.yml

version: "3"

services:
  loraserver:
    image: loraserver/loraserver:3
    volumes:
      - ./configuration/loraserver:/etc/loraserver

  loraserver470:
    image: loraserver/loraserver:3
    volumes:
      - ./configuration/loraserver470:/etc/loraserver

  appserver470:
    image: loraserver/lora-app-server:3
    ports:
     - 8087:8080
    volumes:
     - ./configuration/lora-app-server470:/etc/lora-app-server

  appserver:
    image: loraserver/lora-app-server:3
    ports:
      - 8080:8080
    volumes:
      - ./configuration/lora-app-server:/etc/lora-app-server

#  gatewaybridge:
#    image: loraserver/lora-gateway-bridge:3
#    ports:
#      - 1700:1700/udp
#    volumes:
#      - ./configuration/lora-gateway-bridge:/etc/lora-gateway-bridge

  geoserver:
    image: loraserver/lora-geo-server:3
    volumes:
      - ./configuration/lora-geo-server:/etc/lora-geo-server

  postgresql:
    image: postgres:9.6-alpine
    volumes:
      - ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
      - postgresqldata:/var/lib/postgresql/data

  redis:
    image: redis:5-alpine
    volumes:
      - redisdata:/data

  mosquitto:
    image: eclipse-mosquitto
    ports:
      - 1883:1883
  mosquitto470:
    image: eclipse-mosquitto
    ports:
      - 1887:1883

volumes:
  postgresqldata:
  redisdata:

By one database, do you mean one database host with two databases, or one shared database within one host? You can use the same host, but you probably want a separate database for each network server.

One shared database within one host

What if there is any problem with this?

And add new ns failed for this reason?

My current ns

Thanks!