This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Dungeon-MASSters/MASSter
- Loading branch information
Showing
10 changed files
with
548 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,57 @@ | ||
# MASSter | ||
# Обложкер | ||
|
||
[![Deploy frontend](https://github.com/Dungeon-MASSters/MASSter/actions/workflows/deploy-frontend.yml/badge.svg)](https://github.com/Dungeon-MASSters/MASSter/actions/workflows/deploy-frontend.yml) | ||
|
||
## Инструкции для локального запуска | ||
|
||
http://localhost:8080/ - веб приложение | ||
|
||
http://localhost:8090/ - BaaS pocketbase | ||
|
||
Все сервисы приложения упакованы в Docker compose, для запуска необходимо | ||
выполнить следующие действия: | ||
|
||
### 1. Отредактировать пароли в docker-composer.yaml | ||
|
||
Указать данные для подключения с Pocketbase. Для сервисов preprocessor и | ||
generator указать переменные окружения (можно использовать значения по | ||
умолчанию): | ||
|
||
```bash | ||
[email protected] | ||
PB_PWD=1234567890 | ||
``` | ||
|
||
### 2. Собрать докер образы | ||
|
||
Для сборки выполнить команду: | ||
|
||
```bash | ||
docker compose build # docker-compose build для более старых версий Docker | ||
``` | ||
|
||
### 3. Запустить сервисы | ||
|
||
Для запуска выполнить команду: | ||
|
||
```bash | ||
docker compose up # docker-compose up для более старых версий Docker | ||
``` | ||
|
||
### 4. Создать пользователя Pocketbase | ||
|
||
Зайти в админ панель Pocketbase по адресу: | ||
|
||
http://localhost:8090/_ | ||
|
||
Создать первого пользователя с логином и паролем ранее указанным в | ||
docker-compose.yaml | ||
|
||
### 5. Настроить Oauth | ||
|
||
В админ панели Pocketbase в меню `Settings/Auth providers` добавить провайдера | ||
Vk или Yandex | ||
|
||
### 6. Готово | ||
|
||
Веб-приложение доступно на http://localhost:8080/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,20 +27,38 @@ services: | |
|
||
preprocessor: | ||
build: | ||
context: model/preprocessor/docker | ||
context: model/generator/ | ||
dockerfile: docker/Dockerfile | ||
|
||
environment: | ||
- PB_LINK=http://pocketbase:8090/ | ||
- [email protected] | ||
- PB_PWD=1234567890 | ||
- COL_NAME=text_generation_mvp | ||
|
||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] | ||
|
||
generator: | ||
build: | ||
context: model/generator/docker | ||
context: model/generator/ | ||
dockerfile: docker/Dockerfile | ||
|
||
environment: | ||
- PB_LINK=http://pocketbase:8090/ | ||
- [email protected] | ||
- PB_PWD=1234567890 | ||
- COL_NAME=text_generation_mvp | ||
|
||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VITE_PB_HOST="http://pocketbase:8090" | ||
VITE_PB_HOST="http://localhsot:8090" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.