You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DOCKER_INSTALLATION_EN.md
+9-19Lines changed: 9 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,28 +33,22 @@ Please substitute it with your own domain.
33
33
34
34
## Installation
35
35
36
-
1.Copy the file `./docker/docker-compose-default.yaml` to `docker-compose.yaml`. This is necessary because `docker-compose.yaml` is in `.gitignore` and won’t cause conflicts when updating the git repository.
36
+
1.Configure kernel parameters because they cannot be changed inside the container, specifically `fs.inotify.max_user_instances` and `fs.inotify.max_user_watches`. Run the following:
echo"fs.inotify.max_user_instances=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
40
+
echo"fs.inotify.max_user_watches=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
41
+
sudo sysctl --system
40
42
```
43
+
41
44
2. Copy `./docker/example.env` and rename it to `.env`. This file stores variables used in `docker-compose.yaml`.
42
45
43
46
```shell
44
47
cp ./docker/example.env .env
45
48
```
46
49
47
50
3. Configure environment variables in the `.env` file. These variables are used in the `docker-compose.yaml` file to pass repeated values.
48
-
49
-
4. Configure kernel parameters because they cannot be changed inside the container, specifically `fs.inotify.max_user_instances` and `fs.inotify.max_user_watches`. Run the following:
50
-
51
-
```shell
52
-
echo"fs.inotify.max_user_instances=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
53
-
echo"fs.inotify.max_user_watches=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
54
-
sudo sysctl --system
55
-
```
56
-
57
-
5. Configure container environment variables. Below is the list of variables used during deployment:
51
+
Below is the list of variables used during deployment:
58
52
59
53
-`MAIL_DOMAIN` – The domain name of the future server. (required)
60
54
-`DEBUG_COMMANDS_ENABLED` – Run debug commands before installation. (default: `false`)
@@ -68,24 +62,20 @@ sudo sysctl --system
68
62
69
63
You can also use any variables from the [ini configuration file](https://github.com/chatmail/relay/blob/main/chatmaild/src/chatmaild/ini/chatmail.ini.f); they must be in uppercase.
70
64
71
-
Mandatory variables for deployment via Docker:
72
-
73
-
-`CHANGE_KERNEL_SETTINGS` – Change kernel settings (`fs.inotify.max_user_instances` and `fs.inotify.max_user_watches`) on startup. Changing kernel settings inside the container is not possible! (default: `False`)
74
-
75
-
6. Build the Docker image:
65
+
4. Build the Docker image:
76
66
77
67
```shell
78
68
docker compose build chatmail
79
69
```
80
70
81
-
7. Start docker compose and wait for the installation to finish:
71
+
5. Start docker compose and wait for the installation to finish:
Copy file name to clipboardExpand all lines: docs/DOCKER_INSTALLATION_RU.md
+11-17Lines changed: 11 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,24 +30,21 @@ Please substitute it with your own domain.
30
30
31
31
## Installation
32
32
33
-
1.Скопировать файл `./docker/docker-compose-default.yaml` в `docker-compose.yaml`. Это нужно потому что `docker-compose.yaml` находится в `.gitignore` и не будет создавать конфликты при обновлении гит репозитория.
33
+
1.Настроить параметры ядра, потому что внутри контейнера их нельзя изменить, а конкретно `fs.inotify.max_user_instances` и `fs.inotify.max_user_watches`. Для этого выполнить следующее:
echo"fs.inotify.max_user_instances=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
36
+
echo"fs.inotify.max_user_watches=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
37
+
sudo sysctl --system
36
38
```
39
+
37
40
2. Скопировать `./docker/example.env` и переименовать в `.env`. Здесь хранятся переменные, которые используются в `docker-compose.yaml`.
38
41
```shell
39
42
cp ./docker/example.env .env
40
-
```\
41
-
3. Настроить переменные окружения в `.env` файле. Эти переменные используются в `docker-compose.yaml` файле, чтобы передавать повторяющиеся значения.
42
-
43
-
4. Настроить параметры ядра, потому что внутри контейнера их нельзя изменить, а конкретно `fs.inotify.max_user_instances` и `fs.inotify.max_user_watches`. Для этого выполнить следующее:
44
-
```shell
45
-
echo"fs.inotify.max_user_instances=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
46
-
echo"fs.inotify.max_user_watches=65536"| sudo tee -a /etc/sysctl.d/99-inotify.conf
47
-
sudo sysctl --system
48
43
```
49
44
50
-
5. Настроить переменные окружения контейнера. Ниже перечислен список переменных учавствующих при развертывании.
45
+
3. Настроить переменные окружения в `.env` файле. Эти переменные используются в `docker-compose.yaml` файле, чтобы передавать повторяющиеся значения.
46
+
Ниже перечислен список переменных учавствующих при развертывании:
47
+
51
48
-`MAIL_DOMAIN` - Доменное имя будущего сервера. (required)
52
49
-`DEBUG_COMMANDS_ENABLED` - Выполнить debug команды перед установкой. (default: `false`)
53
50
-`FORCE_REINIT_INI_FILE` - Пересоздавать ini файл конфигурации при запуске. (default: `false`)
@@ -60,21 +57,18 @@ sudo sysctl --system
60
57
61
58
Также могут быть использованы все переменные из [ini файла конфигурации](https://github.com/chatmail/relay/blob/main/chatmaild/src/chatmaild/ini/chatmail.ini.f), они обязаны быть в uppercase формате.
62
59
63
-
Ниже перечислены переменные, которые обязательны быть выставлены при развертывании через docker:
64
-
-`CHANGE_KERNEL_SETTINGS` - Менять настройки ядра (`fs.inotify.max_user_instances` и `fs.inotify.max_user_watches`) при запуске. При запуске в контейнере смена настроек ядра не может быть выполнена! (default: `False`)
65
-
66
-
6. Собрать docker образ
60
+
4. Собрать docker образ
67
61
```shell
68
62
docker compose build chatmail
69
63
```
70
64
71
-
7. Запустить docker compose и дождаться завершения установки
65
+
5. Запустить docker compose и дождаться завершения установки
72
66
```shell
73
67
docker compose up -d # запуск сервиса
74
68
docker compose logs -f chatmail # просмотр логов контейнера. Для выхода нажать CTRL+C
75
69
```
76
70
77
-
8. По окончанию установки можно открыть в браузер `https://<your_domain_name>`
71
+
6. По окончанию установки можно открыть в браузер `https://<your_domain_name>`
78
72
79
73
## Использование кастомных файлов
80
74
При использовании docker есть возможность использовать измененые файлы конфигурации, чтобы сделать установку более персонализированной. Обычно это требуется для секции `www/src`, чтобы ознакомительная страница Chatmail была сделана на ваш вкус. Но также это можно использовать и для любых других случаев.
0 commit comments