> 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/ru/ustanovka/nastroika-yazykov-programmirovaniya.md).

# Настройка языков программирования

## Добавление чекера языка программирования в базу данных

1. Запустить систему
2. Подключиться к базе данных ***cb***(порт 25565)
3. Выбрать схему ***public***
4. Выбрать таблицу ***servers***
5. Внести данные (Добавить новый чекер)

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

6. Сохранить и закрыть.

{% hint style="info" %}
Для данных действий я использовал программу [*pgAdmin 4*](https://www.pgadmin.org/)
{% endhint %}

## Добавление других языков программирования в систему

Список подготовленных образов для языков программирования Вы можете найти [здесь](/ru/ustanovka/obrazy-chekerov.md).

* Скачайте *<mark style="color:purple;">**NAME**</mark>*.Dockefile (Где *<mark style="color:purple;">**NAME**</mark>* - имя файла)
* В `docker-compose.yml` напишите новый сервис.\
  Пример нового `docker-compose.yml`<br>

<...> - сокращенный код

{% 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 %}

Более подробное описание файла:\
\
\&#xNAN;*Строчка 3* - системный сервис, где <mark style="color:red;">frontend</mark> - его название. Его трогать не нужно\
\
\&#xNAN;*Строчка 9* - наш новый чекер для языка программирования. Мы можем дать ему любое название, но я дам <mark style="color:red;">checker-goland</mark>\
\
\&#xNAN;*Строка 10*: относительный путь до образа чекера\
(Кидать файл можно только в корень, путь - <mark style="color:red;">./</mark><mark style="color:purple;">NAME</mark><mark style="color:red;">.Dockerfile</mark><br>

{% hint style="danger" %}
Внимание! В yml файлах отступы играют большую роль, поэтому копируйте, не забывая отступы
{% 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/ru/ustanovka/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.
