Added frontend in the docker compose
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user