# Установка

### Переменные <a href="#user-content-peremennye" id="user-content-peremennye"></a>

`--publicUrl` - Публичный адрес по которому доступен фронт. Поле является обязательным

`--useSsl` - Использование ssl (https)

`--signServiceUrl` - Адрес сервера подписания, по умолчанию <https://gk.9958258.ru>

`--user` - Имя пользователя админа

При включении этого параметра, веб сервер будет искать сертификат в файлах `/data/ssl/server.cert` и `/data/ssl/server.key`. Соответственно, необходимо в монтированную директорию добавить эти файлы.

Переменные передаются при запуске контейнера

### Запуск <a href="#user-content-zapusk-2" id="user-content-zapusk-2"></a>

Запуск с включенным ssl, на 443 порту

```
docker run -p 443:3333 -v ./hr_data:/data cr.selcloud.ru/empldocs-front/emplhr:v1.0.17 --useSsl --publicUrl https://empldocs.app
```

Запуск без ssl на 8080 порту

```
docker run -p 8080:3333 -v ./hr_data:/data cr.selcloud.ru/empldocs-front/emplhr:v1.0.17 --publicUrl https://empldocs.app
```

**Внимание**, в документации указана версия `v1.0.17`, при запуске необходимо использовать последнюю версию

### Пароль администратора <a href="#user-content-parol-administratora" id="user-content-parol-administratora"></a>

При первом запуске генерируется пароль админа и выводится в консоль следующая информация

```
Администратор: manager
Пароль: b3&t&80ga+AN
```


---

# Agent Instructions: 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://padocs.empldocs.app/hr-portal/dlya-polzovatelei/ustanovka.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.
