Notefix/2.Areas/Техпідтримка/Встановлення GLPI через Portainer на (Ubuntu 22.04).md

110 lines
No EOL
2 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 1⃣ Підготуй директорію на сервері
`mkdir -p /opt/glpi cd /opt/glpi`
_(Portainer буде використовувати цю директорію для volume-ів)_
---
# 2⃣ Увійди в Portainer
В браузері:
`http://YOUR_SERVER_IP:9000`
Перейди:
**Home → Local → Stacks → Add stack**
Назва стека:
`glpi`
---
# 3⃣ Встав у [[Portainer]] наступний `docker-compose`:
`version: "3.8"
services:
db:
image: mariadb:10.7
container_name: glpi-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: glpidb
MYSQL_USER: glpi
MYSQL_PASSWORD: glpipass
volumes:
- /opt/glpi/db_data:/var/lib/mysql
glpi:
image: diouxx/glpi:latest
container_name: glpi-app
restart: unless-stopped
ports:
- "8080:80"
environment:
- TIMEZONE=Europe/Kyiv
depends_on:
- db
volumes:
- /opt/glpi/glpi_data:/var/www/html/glpi
volumes: {}
`
---
# 4⃣ Запусти стек
У Portainer натисни:
**Deploy the stack**
Після цього:
- контейнер `glpi-app` підніметься на порту **8080**
- база `glpi-db` стартує автоматично
---
# 5⃣ Відкрити [[Service-Desk GLPI]] в браузері
`http://YOUR_SERVER_IP:8080`
---
# 6⃣ Завершення інсталяції GLPI
На етапі підключення до БД вкажи:
- **Server**: `db`
- **Database**: `glpidb`
- **User**: `glpi`
- **Password**: `glpipass`
---
# 7⃣ Стандартні логіни GLPI
|Роль|Логін|Пароль|
|---|---|---|
|Адмін|glpi|glpi|
|Технік|tech|tech|
|Юзер|normal|normal|
|Тільки пост|post-only|postonly|
---
# 8⃣ Видали директорію `/install`
Через Portainer → Containers → glpi-app → Console (bash):
`rm -rf /var/www/html/glpi/install`
#GLPI #HelpDesk #Portainer #Docker