If you are not already logged in, you need to authenticate to the Container Registry by using your GitLab username and password. If you have Two-Factor Authentication enabled, use a Personal Access Token instead of a password.
```bash
docker login registry.digitallearning.gmbh
```
## Create Docker Network
### Create Docker network
Different containers communicate via a Docker network `web`, which must be created before Docker compose files are executed.
```bash
docker network create web
```
## LRS / MongoDB
First we need a database or LRS to store the xAPI Statements. In a local setup, you can use the docker container in the mongodb folder.
Rename or copy the sample configuration. Please change all passwords in the configuration file.
### Create private/public keys and .env
Please change all passwords in the configuration file and leave the passphrase empty.
```bash
cd mongodb
cd single-compose
ssh-keygen -b 4096 -f id_rsa
cp .env.sample .env
```
Now you can start the mongodb with the following command
### Start containers
```bash
docker compose up -d
```
Please check that the database is created:
Please check whether all services started successfully.
```bash
docker compose ps
```
After that you should be able to visit http://localhost:8004/ and see the rights engine.
## Rights engine
First create some jwt keys with the following command:
### Migrate rights-engine database (only required once after first start)