Fix new Frontend 1
This commit is contained in:
@@ -588,26 +588,35 @@ services:
|
||||
dashboard:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.${ENVIRONMENT}
|
||||
dockerfile: Dockerfile.development # Use the existing development Dockerfile
|
||||
args:
|
||||
- NODE_ENV=development
|
||||
- VITE_API_URL=http://localhost:8000
|
||||
image: bakery/dashboard:${IMAGE_TAG}
|
||||
- NODE_ENV=development
|
||||
- VITE_API_URL=http://localhost:${GATEWAY_PORT:-8000}
|
||||
image: bakery/dashboard:${IMAGE_TAG:-latest}
|
||||
container_name: bakery-dashboard
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- VITE_API_URL=http://localhost:${GATEWAY_PORT:-8000}
|
||||
- VITE_APP_TITLE=PanIA Dashboard
|
||||
- VITE_APP_VERSION=1.0.0
|
||||
ports:
|
||||
- "${DASHBOARD_PORT}:3000"
|
||||
- "${DASHBOARD_PORT:-3000}:3000"
|
||||
depends_on:
|
||||
gateway:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
bakery-network:
|
||||
ipv4_address: 172.20.0.110
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules # Exclude node_modules from bind mount
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
# ================================================================
|
||||
# DEVELOPMENT TOOLS - OPTIONAL
|
||||
|
||||
Reference in New Issue
Block a user