3. Docker

Deploying the KatApp backend on a standard server can be done as a Docker container. This has the advantage that the necessary dependencies, such as MongoDB, are already present in our docker-compose files.

Info

The documentation, dashboard, etc. must also be provided manually here.

Necessary tools

Deployment

To deploy the backend, simply enter the following command in the repository. Docker automatically builds our backend and starts the necessary dependencies. Optionally, you can customise the environment variables. You can find more information about the environment variables here.

Info

If you change the ports in the environment variables, you must also change them in the Dockerfile.

docker compose up -d

Deploy Docker Deploy Docker

Remove the deployment

To remove the deployment, you can execute the following command.

docker compose down