Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dr1dex/my-blog
https://github.com/dr1dex/my-blog
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dr1dex/my-blog
- Owner: Dr1DeX
- License: mit
- Created: 2024-06-05T09:57:09.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T17:57:37.000Z (4 months ago)
- Last Synced: 2024-07-19T14:20:42.872Z (4 months ago)
- Language: Python
- Size: 1.05 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# my-blog
## Как развернуть локально в докере?
### 1) Устанавливаем зависимости:
```
conda create -n blog
conda activate blog
poetry init
poetry install
```
### 2) Инициализируем `alembic`
`alembic init alembic`### 3) Не забываем про переменные окружения `.env.local` и `.env.dev`, например:
```
DB_HOST=blog-pg
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=password
DB_NAME=blog-pg
DB_DRIVER=postgresql+asyncpg
JWT_SECRET_KEY=mega-super-secret
JWT_ENCODE_ALGORITHM=HS256
```### 4) Поднимаем контейнеры:
`docker-compose up --build -d`### 5) Дока станет доступна по адресу [тык](http://localhost:8001/docs)
# by Dr1DeX