This file provides a more detailed explanation of the Docker setup and guidance for deploying the application.
The docker-compose.yml file defines the following services:
redis: A Redis instance that acts as the message broker for Celery.db: A PostgreSQL database to store application data. The data is persisted in a Docker volume namedpostgres_data.pgadmin: A pgAdmin service for managing the PostgreSQL database. It's accessible athttp://localhost:5050.backend: The FastAPI application that serves the API. It depends on thedbandredisservices.worker: The Celery worker that processes image submissions. It depends on theredisservice.bot: The Telegram bot that interacts with users. It depends on thebackendservice.
When you're ready, start your application by running:
docker compose up --build