version: '3.8'

services:
  frontend:
    build:
      context: ..
      dockerfile: deploy/Dockerfile.frontend
    container_name: ai-interview-frontend
    ports:
      - "3000:80"
    depends_on:
      - backend
    networks:
      - ai-interview-network
    restart: unless-stopped

  backend:
    build:
      context: ..
      dockerfile: deploy/Dockerfile.backend
    container_name: ai-interview-backend
    ports:
      - "8000:8000"
    environment:
      - COZE_PAT_TOKEN=${COZE_PAT_TOKEN}
      - COZE_BOT_ID=${COZE_BOT_ID}
      - COZE_WORKFLOW_A_ID=${COZE_WORKFLOW_A_ID}
      - COZE_WORKFLOW_C_ID=${COZE_WORKFLOW_C_ID}
      - FILE_SERVER_URL=${FILE_SERVER_URL}
      - FILE_SERVER_TOKEN=${FILE_SERVER_TOKEN}
    volumes:
      - ./uploads:/app/uploads
    networks:
      - ai-interview-network
    restart: unless-stopped

networks:
  ai-interview-network:
    driver: bridge
