Spaces:
Runtime error
Runtime error
File size: 641 Bytes
0b2f8bd 4cea933 0b2f8bd 4cea933 0b2f8bd 4cea933 0b2f8bd 4cea933 0b2f8bd 4cea933 0b2f8bd 4cea933 0b2f8bd 4cea933 | 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 | version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- HF_TOKEN=${HF_TOKEN:-}
volumes:
# Mount DB for persistence (in production use a volume, here bind-mount is okay for dev)
- backend_data:/app
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
# Next.js will build this at build-time, but here it is for client-side API requests
- NEXT_PUBLIC_API_URL=http://localhost:8000
depends_on:
- backend
volumes:
backend_data:
|