-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (65 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
67 lines (65 loc) · 2.4 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# =============================================================================
# MediScript AI — single source of container environment configuration
# =============================================================================
# Do not use .env files inside frontend/ or backend/. Pass configuration here
# via the `environment` section below, and/or use shell substitution:
# export OPENAI_API_KEY=sk-... # required for real OpenAI calls
# docker compose up --build
#
# ------------------------------------------------------------------------------
# Variables (all consumed by services through the environment block below)
# ------------------------------------------------------------------------------
#
# OPENAI_API_KEY (required for processing)
# OpenAI API key for Whisper transcription and GPT-4o chat completions.
#
# OPENAI_WHISPER_MODEL (optional, default whisper-1)
# Speech-to-text model name.
#
# OPENAI_CHAT_MODEL (optional, default gpt-4o)
# Chat model for SOAP notes, keywords, and billing suggestions.
#
# BACKEND_INTERNAL_URL (frontend only)
# Base URL of the FastAPI app as seen from the Next.js *server* (no trailing
# slash). In Docker, use the Compose service hostname: http://backend:8000
#
# NEXT_PUBLIC_API_BASE_URL (frontend only)
# Base URL for browser-side fetch(). Empty string = same-origin paths like
# /api/... which Next.js Route Handlers proxy to BACKEND_INTERNAL_URL.
#
# PORT (per service)
# backend: HTTP port inside the backend container (default 8000).
# frontend: Next.js listens on this port inside the container (default 3000).
#
# NODE_ENV (frontend)
# production for the containerized Next.js server.
#
# HOSTNAME (frontend)
# Bind address for Next.js (0.0.0.0 inside Docker).
#
# =============================================================================
services:
backend:
build:
context: ./backend
ports:
- "8000:8000"
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
OPENAI_WHISPER_MODEL: whisper-1
OPENAI_CHAT_MODEL: gpt-4o
PORT: "8000"
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
depends_on:
- backend
environment:
BACKEND_INTERNAL_URL: http://backend:8000
NEXT_PUBLIC_API_BASE_URL: ""
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: "1"
PORT: "3000"
HOSTNAME: "0.0.0.0"