Production Installation

Docker

Set Environment Variables

Example: https://github.com/CodeBattles-nn/codebattles/blob/new_backend/.env.example

.env.example
DB_USER=dfvdsdfvsdswvdfvdsvdfvdf
DB_PASSWORD=dvnsevhjeiwurowuqvhjevfvuodfb
DB_NAME=cb
1

Create a .env File

The structure can be found in .env.example

2

Set Complex Settings

In the .env file

Select Your Architecture

To install, you need to download the repository and deploy the Docker compose Container

pulling images from the repository:

docker compose -f prod-docker-compose.yml pull

starting:

docker compose -f prod-docker-compose.yml up

To run containers in the background, use the -d flag

Example:

docker compose up -f prod-docker-compose.yml -d

After this, please configure the programming languages. This is described on the next page

Last updated

Was this helpful?