quivr/docker-compose.dev.yml
Stan Girard 31d3cce97f
fix: sync creation fixed (#2637)
This pull request includes updates to the `docker-compose.dev.yml` and
`Dockerfile.dev` files. The changes aim to improve performance and fix
bugs. The updates include:

- Removing unnecessary workers configuration in the
`docker-compose.dev.yml` file.

- Updating the base image in the `Dockerfile.dev` to use a slim version.

- Adjusting the schedule for a specific task in the code.

- Modifying the time interval for retrieving active syncs.

- Changing the loader class for processing PowerPoint files.

- Refactoring the file existence check logic.

- Adding debug logs for file existence check and file removal.

- Adjusting the file synchronization logic.

These changes are intended to enhance the performance and stability of
the application.
2024-06-06 10:06:21 -07:00

92 lines
1.7 KiB
YAML

version: "3.8"
services:
backend-core:
image: backend-base:latest
extra_hosts:
- "host.docker.internal:host-gateway"
pull_policy: never
env_file:
- .env
build:
context: backend
dockerfile: Dockerfile.dev
cache_from:
- backend-base:latest
args:
- DEV_MODE=true
container_name: backend-core
volumes:
- ./backend/:/code/
command:
- "uvicorn"
- "main:app"
- "--reload"
- "--host"
- "0.0.0.0"
- "--port"
- "5050"
- "--log-level"
- "info"
restart: always
ports:
- 5050:5050
- 5678:5678 # debug port
redis:
image: redis:latest
container_name: redis
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
ports:
- 6379:6379
worker:
pull_policy: never
image: backend-base:latest
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
container_name: worker
# volumes:
# - ./backend/:/code/
command: celery -A celery_worker worker -l info
restart: always
depends_on:
- redis
beat:
image: backend-base:latest
pull_policy: never
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
container_name: beat
command: celery -A celery_worker beat -l info
restart: always
depends_on:
- redis
flower:
image: backend-base:latest
pull_policy: never
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
container_name: flower
command: celery -A celery_worker flower -l info --port=5555
restart: always
depends_on:
- redis
- worker
- beat
ports:
- 5555:5555