Added frontend in the docker compose

This commit is contained in:
2025-09-26 22:04:31 +02:00
parent b0289d865c
commit cdbc93d4aa
4 changed files with 75 additions and 1 deletions

View File

@@ -68,6 +68,19 @@ services:
- mydocmanager-network
command: celery -A tasks.main worker --loglevel=info
# Frontend - React application with Vite
frontend:
build:
context: ./src/frontend
dockerfile: Dockerfile
container_name: mydocmanager-frontend
ports:
- "5173:5173"
volumes:
- ./src/frontend:/app
- /app/node_modules # Anonymous volume to prevent node_modules override
networks:
- mydocmanager-network
volumes:
mongodb-data: