Медицина/Установка: различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
| (не показаны 2 промежуточные версии этого же участника) | |||
| Строка 61: | Строка 61: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
. /root/medicine-config/tfoms-patient/install.sh | . /root/medicine-config/tfoms-patient/install.sh | ||
</syntaxhighlight> | |||
=== Сброс пароля администратора === | |||
<syntaxhighlight lang="bash"> | |||
. /root/medicine-config/medicine/reset_password.sh | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Строка 67: | Строка 72: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
crontab -e | export EDITOR="vim" && crontab -e | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Строка 76: | Строка 81: | ||
20 13 * * * /root/medicine-config/medicine/update.sh | 20 13 * * * /root/medicine-config/medicine/update.sh | ||
55 13 * * * /root/medicine-config/medicine/backup_database.sh | 55 13 * * * /root/medicine-config/medicine/backup_database.sh | ||
00 00 * * * /root/medicine-config/scripts/docker-cleanup.sh | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Текущая версия от 02:40, 7 декабря 2025
Настройка сервера - Ubuntu, Debian
Все действия выполнять от пользователя root
Устанавливаем git, unzip, vim, openssl
sudo apt-get update && apt-get install --assume-yes git unzip vim openssl openssh-server curl
Устанавливаем автоматически Docker
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
Ручная установка Docker
Настройка сервера РЕД ОС
Все действия выполнять от пользователя root
Устанавливаем git, unzip, vim, openssl
dnf --assumeyes update && dnf install --assumeyes git unzip vim openssl openssh-server
Установка
dnf install docker-ce docker-ce-cli docker-compose
Автозапуск Docker
systemctl enable docker --now
Ручная установка Docker
Установка системы
Клонируем репозиторий с настройками
cd /root && git -c http.sslVerify=false clone https://git.med-logic.ru/ilya.muhortov/medicine-config.git
Устанавливаем базовые образы
. /root/medicine-config/bash_scripts/install-base.sh
Устанавливаем МИС Медицина
. /root/medicine-config/bash_scripts/install-medicine.sh
Устанавливаем РЭМД
. /root/medicine-config/bash_scripts/install-remd.sh
Устанавливаем сервис проверки полисов
. /root/medicine-config/tfoms-patient/install.sh
Сброс пароля администратора
. /root/medicine-config/medicine/reset_password.sh
Автообновление
С помощью планировщика задач cron добавить следующие задачи
export EDITOR="vim" && crontab -e
00 21 * * * /root/medicine-config/update_repository.sh
30 13 * * * /root/medicine-config/medicine-remd/update.sh
50 13 * * * /root/medicine-config/medicine-remd/backup_database.sh
20 13 * * * /root/medicine-config/medicine/update.sh
55 13 * * * /root/medicine-config/medicine/backup_database.sh
00 00 * * * /root/medicine-config/scripts/docker-cleanup.sh
Docker Compose alias
ln -f -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose
Docker через прокси
Создать файл /etc/systemd/system/docker.service.d
[Service]
Environment="HTTP_PROXY=http://proxy-host/"
Environment="NO_PROXY=localhost,127.0.0.1"
Добавить в файл /etc/docker/daemon.json
{
"insecure-registries": ["docker.med-logic.ru:80"]
}
В файл ~/.docker/config.json
{
"auths": {
"docker.med-logic.ru:80": {
"auth": ""
}
}
}
Перезапустить сервис
systemctl daemon-reload
systemctl restart docker