quivr/docker-compose.dev.yml

105 lines
2.3 KiB
YAML
Raw Normal View History

2023-12-02 19:08:21 +03:00
version: "3.8"
services:
backend-api:
image: backend-api:latest
extra_hosts:
- "host.docker.internal:host-gateway"
2023-12-02 19:08:21 +03:00
pull_policy: never
env_file:
2023-12-02 19:08:21 +03:00
- .env
build:
context: backend
dockerfile: Dockerfile.dev
feat(assistants): Add PDF generation functionality and nice emails (#2436) This pull request adds PDF generation functionality and improves the formatting of emails. It includes a new module for generating PDFs using the fpdf2 library and updates the email templates to use markdown formatting for better readability. <!-- ELLIPSIS_HIDDEN --> ---- | <a href="https://ellipsis.dev" target="_blank"><img src="https://avatars.githubusercontent.com/u/80834858?s=400&u=31e596315b0d8f7465b3ee670f25cea677299c96&v=4" alt="Ellipsis" width="30px" height="30px"/></a> | :rocket: This PR description was created by [Ellipsis](https://www.ellipsis.dev) for commit ccecff77a5de9d8a975807862390efa5dbcfe8df. | |--------|--------| ### Summary: This PR introduces PDF generation functionality, improves email formatting, sanitizes filenames, updates various files and dependencies, and updates `docker-compose.dev.yml`. **Key points**: - Added PDF generation functionality using the `fpdf2` library - Improved email formatting - Sanitized filenames using the `unidecode` library - Updated `backend/modules/assistant/ito/ito.py` to generate PDFs and sanitize filenames - Added `pdf_generator.py` in `backend/modules/assistant/ito/utils/` for PDF generation - Updated `Pipfile` and `Pipfile.lock` in `backend/modules/assistant/ito/utils/` to include `unidecode` - Updated `requirements.txt` with new dependencies - Updated `docker-compose.dev.yml` ---- Generated with :heart: by [ellipsis.dev](https://www.ellipsis.dev) <!-- ELLIPSIS_HIDDEN -->
2024-04-17 16:00:31 +03:00
cache_from:
- backend-api:latest
args:
- DEV_MODE=true
container_name: backend-api
volumes:
- ./backend/:/app/
command: >
/bin/bash -c "python -m uvicorn quivr_api.main:app --host 0.0.0.0 --log-level info --reload --port 5050"
2024-01-03 23:53:37 +03:00
restart: always
2023-09-14 18:23:17 +03:00
ports:
- 5050:5050
- 5678:5678 # debug port
notifier:
pull_policy: never
image: backend-api:latest
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
container_name: notifier
volumes:
- ./backend/:/app/
command: >
/bin/bash -c "python /app/worker/quivr_worker/celery_monitor.py"
restart: always
depends_on:
- redis
- worker
2023-09-14 18:23:17 +03:00
worker:
2023-12-02 19:08:21 +03:00
pull_policy: never
image: backend-api:latest
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
2023-12-02 19:08:21 +03:00
- .env
2023-09-14 18:23:17 +03:00
container_name: worker
volumes:
- ./backend/:/app/
command: >
/bin/bash -c "python -m celery -A quivr_worker.celery_worker worker -l info -E"
2023-12-02 19:08:21 +03:00
restart: always
depends_on:
- redis
redis:
image: redis:latest
container_name: redis
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
ports:
- 6379:6379
2023-12-02 19:08:21 +03:00
beat:
image: backend-api:latest
2023-12-02 19:08:21 +03:00
pull_policy: never
extra_hosts:
- "host.docker.internal:host-gateway"
2023-12-02 19:08:21 +03:00
env_file:
- .env
container_name: beat
command: >
/bin/bash -c "python -m celery -A quivr_worker.celery_worker beat -l info"
volumes:
- ./backend/:/app/
2023-12-02 19:08:21 +03:00
restart: always
2023-09-14 18:23:17 +03:00
depends_on:
- redis
2023-09-14 18:23:17 +03:00
flower:
image: backend-api:latest
2023-12-02 19:08:21 +03:00
pull_policy: never
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
2023-12-02 19:08:21 +03:00
- .env
2023-09-14 18:23:17 +03:00
container_name: flower
command: >
/bin/bash -c "python -m celery -A quivr_worker.celery_worker flower -l info --port=5555"
volumes:
- ./backend/:/app/
2023-12-02 19:08:21 +03:00
restart: always
2023-09-14 18:23:17 +03:00
depends_on:
- redis
- worker
2023-12-02 19:08:21 +03:00
- beat
2023-09-14 18:23:17 +03:00
ports:
- 5555:5555