https://github.com/zakharb/celeryapi
Service to work with Celery, Redis, FastAPI
https://github.com/zakharb/celeryapi
Last synced: 9 months ago
JSON representation
Service to work with Celery, Redis, FastAPI
- Host: GitHub
- URL: https://github.com/zakharb/celeryapi
- Owner: zakharb
- License: gpl-3.0
- Created: 2023-03-24T18:54:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T11:52:37.000Z (almost 3 years ago)
- Last Synced: 2025-01-15T22:43:45.219Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## :green_square: Getting Started
[CeleryAPI](https://github.com/zakharb/celeryapi) is the Service that parse website for Links and get additional infos from urls using Celery.
### Requirements



### Installing
Clone the project
```
git clone git@github.com:zakharb/celeryapi.git
cd celeryapi
```
Start docker-compose
```
docker-compose up -d
```
## :green_square: Usage
## :green_square: Configuration
To solve problem with performance each Service run in container
[Uvicorn]((https://www.uvicorn.org/)) work as ASGI server
Main configuration is `docker-compose.yml`
- every service located in separate directory `name-service`
- use `Dockerfile` to change docker installation settings
- folder `app` contain FastAPI application
- all services connected to one piece in `docker-compose.yml`
- example of service + DB containers (change `--workers XX` to increase multiprocessing)
### Examples
`Customer` service
```
services:
web:
build: ./backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend/:/app/
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
- redis
- worker
```
## :green_square: Deployment
Edit `Dockerfile` for each Microservice and deploy container
## :green_square: Versioning
Using [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/zakharb/celeryapi/tags).
## :green_square: Authors
* **Zakhar Bengart** - *Initial work* - [Ze](https://github.com/zakharb)
See also the list of [contributors](https://github.com/zakharb/celeryapi/contributors) who participated in this project.
## :green_square: License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation - see the [LICENSE](LICENSE) file for details