2025-10-25 01:21:49 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
eva:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
2025-10-25 01:53:13 +00:00
|
|
|
args:
|
|
|
|
|
# Vite environment variables for dashboard build
|
|
|
|
|
VITE_API_URL: ${VITE_API_URL:-http://localhost:8000}
|
|
|
|
|
VITE_DEFAULT_LATITUDE: ${VITE_DEFAULT_LATITUDE:-37.7749}
|
|
|
|
|
VITE_DEFAULT_LONGITUDE: ${VITE_DEFAULT_LONGITUDE:--122.4194}
|
2025-10-25 01:21:49 +00:00
|
|
|
image: eva-monorepo:latest
|
|
|
|
|
container_name: eva
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "8000:8000"
|
|
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
|
|
|
|
# Uncomment and configure if you need to pass environment variables
|
|
|
|
|
# env_file:
|
|
|
|
|
# - apps/backend/.env
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 40s
|