> For the complete documentation index, see [llms.txt](https://docs.codebattles.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codebattles.ru/en/installation/nastroika-yazykov-programmirovaniya.md).

# Programming language setup

### Setting up programming languages

### Adding a programming language checker to the database

1. Start the system
2. Connect to the ***cb*** database (port 25565)
3. Select the ***public*** schema
4. Select the ***servers*** table
5. Enter data (Add a new checker)

<figure><img src="/files/SKlv3y2H6jJRHU9bjGMp" alt=""><figcaption></figcaption></figure>

6. Save and close.

{% hint style="info" %}
For these actions, I used the program [*pgAdmin 4*](https://www.pgadmin.org/)
{% endhint %}

### Adding other programming languages to the system

You can find the list of prepared images for programming languages [here](/en/installation/obrazy-chekerov.md).

* Download *<mark style="color:purple;">**NAME**</mark>*.Dockerfile (Where *<mark style="color:purple;">**NAME**</mark>* is the file name)
* In `docker-compose.yml`, write a new service. Example of a new `docker-compose.yml`

<...> - abbreviated code

{% code title="docker-compose.yml" lineNumbers="true" %}

```yaml
version: "3.9"
services:
  frontend:
    build: FRONTEND/.
    ports:
      - "80:80"
    restart: unless-stopped
  <...>
  checker-goland:
    build:
      dockerfile: ./NAME.Dockerfile
    restart: unless-stopped

```

{% endcode %}

More detailed description of the file:

\&#xNAN;*Line 3* - system service, where <mark style="color:red;">frontend</mark> is its name. Do not change it

\&#xNAN;*Line 9* - our new checker for the programming language. We can give it any name, but I will give it <mark style="color:red;">checker-goland</mark>

\&#xNAN;*Line 10*: relative path to the checker image (You can only place the file in the root, the path is <mark style="color:red;">./</mark><mark style="color:purple;">NAME</mark><mark style="color:red;">.Dockerfile</mark>

{% hint style="danger" %}
Attention! Indentation plays a significant role in yml files, so copy without forgetting the indentation
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codebattles.ru/en/installation/nastroika-yazykov-programmirovaniya.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
