Nibamot / free5gc-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Free5GC Compose

This repository is a docker compose version of Free5GC for stage 3. It's inspired by free5gc-docker-compose and also reference to docker-free5gc.

You can setup your own config in config folder and docker-compose.yaml

Prerequisites

Start Free5gc

Because we need to create tunnel interface, we need to use privileged container with root permission.

# Clone the project
git clone https://github.com/free5gc/free5gc-compose.git
cd free5gc-compose

# Build the images
make base
docker-compose build

# Run it
sudo docker-compose up # add -d to run in background mode

Troubleshooting

Sometimes, you need to drop data from DB:

docker exec -it mongodb mongo
> use free5gc
> db.subscribers.drop()
> exit # (Or Ctrl-D)

You can see logs for each service using docker logs command. For example, to access the logs of the SMF you can use:

docker logs smf

Please refer to the wiki for more troubleshooting information.

Integration with external gNB/UE simulators

The integration with the UERANSIM eNB/UE simulator is documented here.

You can also refer to this issue to find out how you can configure the UPF to forward traffic between the UERANSIM to the DN (eg. internet) in a docker environment.

This issue provides detailed steps that might be useful.

Vagrant Box Option

You can setup a working environment without the fuss of updating your kernel version just by using a vagrant box. You can follow the instructions provided here: https://github.com/abousselmi/vagrant-free5gc

Reference

About

License:Apache License 2.0


Languages

Language:Dockerfile 93.4%Language:Shell 4.6%Language:Makefile 2.0%