quivr/docker-compose.dev.yml

93 lines
1.9 KiB
YAML
Raw Normal View History

2023-12-02 19:08:21 +03:00
version: "3.8"
services:
2023-07-17 09:57:27 +03:00
backend-core:
image: backend-base: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-base:latest
args:
- DEV_MODE=true
2023-07-17 09:57:27 +03:00
container_name: backend-core
volumes:
- ./backend/:/code/
2024-01-03 23:53:37 +03:00
command:
2023-12-02 19:08:21 +03:00
- "uvicorn"
- "quivr_api.main:app"
- "--reload"
2023-12-02 19:08:21 +03:00
- "--host"
- "0.0.0.0"
- "--port"
- "5050"
- "--log-level"
- "info"
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
2023-09-14 18:23:17 +03:00
redis:
image: redis:latest
2023-09-14 18:23:17 +03:00
container_name: redis
extra_hosts:
- "host.docker.internal:host-gateway"
2023-12-02 19:08:21 +03:00
restart: always
2023-09-14 18:23:17 +03:00
ports:
- 6379:6379
2023-09-14 18:23:17 +03:00
worker:
2023-12-02 19:08:21 +03:00
pull_policy: never
image: backend-base: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/:/code/
command: "celery -A quivr_api.celery_worker worker -l info"
2023-12-02 19:08:21 +03:00
restart: always
depends_on:
- redis
beat:
image: backend-base: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: celery -A quivr_api.celery_worker beat -l info
volumes:
- ./backend/:/code/
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-base: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: celery -A quivr_api.celery_worker flower -l info --port=5555
volumes:
- ./backend/:/code/
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