add frontend Docker dev service on port 5173.
Vite hot reload via src bind mount; starts after backend health check passes.
This commit is contained in:
@@ -52,6 +52,22 @@ services:
|
||||
retries: 20
|
||||
start_period: 10s
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_frontend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env.dev
|
||||
ports:
|
||||
- '${FRONTEND_PORT}:5173'
|
||||
volumes:
|
||||
- ./frontend/src:/frontend/src
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
private_image_postgres_data:
|
||||
private_image_pgadmin_data:
|
||||
|
||||
Reference in New Issue
Block a user