Closed icea-conf closed 9 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!
Thank you for your answer.
Hi, @Borjis131
By any chance, can I know how to use open5gs-dbctl
?
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!
Thank you for your kind reply! It was very helpful.
Hi @icea-conf I added the webui as a separate docker image. You can try it selecting the compose-file under metrics/
.
Hi, @Borjis131 . It was confirmed that the core was operating normally. I know open5gs provides webui, how can I use webui as a container?