Files
sums001-Windows-Copilot-API/docker-compose.yml
T

20 lines
668 B
YAML

services:
copilot-api:
build: .
image: windows-copilot-api
ports:
- "8000:8000"
environment:
# Bind inside the container; the host port is set under `ports` above.
HOST: "0.0.0.0"
PORT: "8000"
# Self-imposed rate limit (see server/config.py). Tune to your account.
RATE_LIMIT_RPM: "12"
RATE_LIMIT_BURST: "4"
volumes:
# Persist the signed-in browser profile + cached token across restarts.
# Sign in once on the host (`python -m copilot login`) so this folder is
# populated; the container only does the headless token refresh.
- ./session:/app/session
restart: unless-stopped