version: '3.8' | |
services: | |
app: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- "7860:7860" | |
environment: | |
- PORT=7860 | |
restart: unless-stopped | |
# Development service with fallback options for npm | |
dev: | |
image: node:18-alpine | |
command: sh -c "npm config set registry https://registry.npmjs.org/ && npm config set strict-ssl false && npm install --no-fund --no-audit && npm run dev" | |
ports: | |
- "5173:5173" | |
working_dir: /app | |
volumes: | |
- .:/app | |
- /app/node_modules | |
environment: | |
- NODE_ENV=development |