CeleryAPI is the Service that parse website for Links and get additional infos from urls using Celery.
Clone the project
git clone git@github.com:zakharb/celeryapi.git
cd celeryapi
Start docker-compose
docker-compose up -d
To solve problem with performance each Service run in container
Uvicorn 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)
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
Edit Dockerfile
for each Microservice and deploy container
Using SemVer for versioning. For the versions available, see the tags on this repository.
- Zakhar Bengart - Initial work - Ze
See also the list of contributors who participated in this project.
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 file for details