A docker compose that has two containers:
- mysql container running on inner 3306 port and outer 3310 port.
- python 3.9 container that has fastapi and uvicorn web server, running on 80 inner port and 80 outer port.
To deploy this project you must have docker and run this command from the main folder
docker compose up -d
GET 127.0.0.1/logs/{value}
Parameter | Type | Description |
---|---|---|
value |
string |
Required. key to search |
POST 127.0.0.1/add_log/
Parameter | Type | Description |
---|---|---|
Log |
JSON |
{ "log_msg" :"string"} |
GET 127.0.0.1/docs/
Description |
---|
BUILT IN docs from fastapi |