version: "3.9"

services:
  chat-one-web:
    build:
      context: .
      dockerfile: Dockerfile
    image: chat-one-web:latest
    container_name: chat-one-web
    restart: unless-stopped
    environment:
      # 后端接口地址；如果后端也在 compose 网络中，改成类似 http://chat-one-api:3000
      API_UPSTREAM: http://host.docker.internal:3000
    extra_hosts:
      - "host.docker.internal:host-gateway"
    ports:
      - "80:80"
