Borjis131 / docker-open5gs

Open5GS 5G Core Docker images and Docker compose deployments
GNU Affero General Public License v3.0
20 stars 11 forks source link

webui #2

Closed icea-conf closed 9 months ago

icea-conf commented 10 months ago

Hi, @Borjis131 . It was confirmed that the core was operating normally. I know open5gs provides webui, how can I use webui as a container?

Borjis131 commented 10 months ago

Hi @icea-conf, right now I do not provide a separate container for the webui component, I basically use the open5gs-dbctl utility that comes with Open5GS to add new users into the database.

But it should be possible to add the base-open5gs (the container used to compile everything) to a docker compose deployment and make use of the webui through that container.

Hope it helps!

icea-conf commented 10 months ago

Thank you for your answer.

v1ctory3 commented 10 months ago

Hi, @Borjis131

By any chance, can I know how to use open5gs-dbctl?

Borjis131 commented 10 months ago

Hi @v1ctory3, It is a script located on the official Open5GS repository under misc/db/.

You will need the mongosh utility for it to work (it comes with the mongodb packages in Ubuntu). After that you can see all the options with:

./open5gs-dbctl

The basic usage is to add a user specifying the imsi, key and opc values:

./open5gs-dbctl add {imsi key opc}

After that you can check the contents of the database (in the case of docker-open5gs, the database volume) with:

./open5gs-dbctl showpretty

Tip: If you install the mongodb packages in Ubuntu, remember to stop and disable the mongodb service or it will use the same port as the database in docker-open5gs and it will give you some problems!

v1ctory3 commented 10 months ago

Thank you for your kind reply! It was very helpful.

Borjis131 commented 1 month ago

Hi @icea-conf I added the webui as a separate docker image. You can try it selecting the compose-file under metrics/.