Team Ai
Apppublic

IDKHowToCodeFr/tinyml-backend

sourceHugging Faceupdated 12h agoView on Hugging Face
1likes
docker-compose.yml30 linesDownload Raw Back to root
1version: '3.8'2 3services:4  backend:5    build:6      context: ./backend7      dockerfile: Dockerfile8    ports:9      - "8000:8000"10    environment:11      - HF_TOKEN=${HF_TOKEN:-}12    volumes:13      # Mount DB for persistence (in production use a volume, here bind-mount is okay for dev)14      - backend_data:/app15 16  frontend:17    build:18      context: ./frontend19      dockerfile: Dockerfile20    ports:21      - "3000:3000"22    environment:23      # Next.js will build this at build-time, but here it is for client-side API requests24      - NEXT_PUBLIC_API_URL=http://localhost:800025    depends_on:26      - backend27 28volumes:29  backend_data:30