Spaces:
Sleeping
Sleeping
File size: 829 Bytes
5fe93dd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "7860:7860"
volumes:
- ./default.env:/app/default.env
environment:
- HOST=0.0.0.0
restart: unless-stopped
# Optional explicitly decoupled frontend override if developers
# want hot-reloading native modules running parallel to the backend container.
frontend-dev:
image: node:18-alpine
working_dir: /app/frontend
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
ports:
- "5173:5173"
command: sh -c "npm install && npm run dev -- --host"
depends_on:
- backend
# Note: If you just want the production frontend statically served,
# you do not need to run this service; the backend service handles it automatically.
|