https://github.com/muxe1/fortea-backend
Social network for connoisseurs of Chinese tea
https://github.com/muxe1/fortea-backend
actions docker docker-compose fastapi nginx postgresql python
Last synced: 2 months ago
JSON representation
Social network for connoisseurs of Chinese tea
- Host: GitHub
- URL: https://github.com/muxe1/fortea-backend
- Owner: muxe1
- License: apache-2.0
- Created: 2023-09-15T22:15:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T23:11:27.000Z (almost 3 years ago)
- Last Synced: 2025-06-19T19:43:47.972Z (about 1 year ago)
- Topics: actions, docker, docker-compose, fastapi, nginx, postgresql, python
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Usage
Rename the .env-example file to .env and replace the data
```env
PG_USER = "root"
PG_USER_EMAIL = "root@root.com"
PG_PASSWORD= "root"
PG_HOST = "postgres"
PG_NAME = "test"
DATABASE_URL= "postgresql://root:root@postgres:5432/test"
AWS_URL = "3213213.aws.ru"
AWS_ACCESS_KEY_ID = "21433123"
AWS_SECRET_ACCESS_KEY = "dsfdsfsdfdsgvdfgd"
SECRET_KEY = "yv567bn4i67utyu7b43675465464565465465466564"
ALGORITHM = "HS256"
```
Run in terminal
```sh
docker compose up -d --build
```
Verify the deployment by navigating to your server address
```sh
http://localhost/docs
```
## Ports
| SERVICE | PORT |
| ------ | ------ |
| nginx | 80 |
| fastapi | 80 -> 7002 |
| pgadmin | 5555 |
| postgres | 5432 |