Nementon/open5gs-deploy ? reverse-engineered prompt
Reverse engineered prompt
Build me a Docker Compose project that deploys an Open5GS 5G core in separate containers for each network function, with MongoDB and the web admin UI included. I want it to be easy to start from a simple .env file, with the Open5GS version, ports, subscriber settings, and network values all configurable without editing code.
Please make it work with Docker DNS and runtime templating so the services can find each other automatically when they start, even if the container IPs change. It should also support running more than one stack on the same machine at the same time as long as I use a different project name and host ports.
Add a preflight script that checks the needed system setup, and make the UPF handle the tunnel device and NAT automatically so UEs can reach the internet. If possible, include optional automatic subscriber provisioning at boot and keep logs and database data persisted on the host. If you need current Open5GS setup details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit