chore(dev): add frontend service to docker compose
This commit is contained in:
@@ -48,6 +48,25 @@ services:
|
||||
networks:
|
||||
- netflix-scraper-network
|
||||
|
||||
frontend:
|
||||
image: node:20-alpine
|
||||
container_name: netflix-scraper-frontend-dev
|
||||
restart: unless-stopped
|
||||
working_dir: /app
|
||||
ports:
|
||||
- "5173:5173"
|
||||
environment:
|
||||
- VITE_API_PROXY_TARGET=http://app:3000
|
||||
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 5173"
|
||||
volumes:
|
||||
- ./frontend:/app:delegated
|
||||
- frontend_node_modules_data:/app/node_modules
|
||||
depends_on:
|
||||
app:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- netflix-scraper-network
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: netflix-scraper-postgres-dev
|
||||
@@ -89,6 +108,7 @@ volumes:
|
||||
postgres_data_dev:
|
||||
redis_data_dev:
|
||||
node_modules_data:
|
||||
frontend_node_modules_data:
|
||||
|
||||
networks:
|
||||
netflix-scraper-network:
|
||||
|
||||
Reference in New Issue
Block a user