Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ services:
build: .
container_name: resume-matcher
ports:
- "${PORT:-3000}:3000"
- "${PORT:-3000}:${FRONTEND_PORT:-3000}"
volumes:
- resume-data:/app/backend/data
#secrets:
# - llm_api_key
environment:
# Internal container ports (default: 3000 frontend, 8000 backend)
# Note: changing BACKEND_PORT requires rebuilding the image with
# matching BACKEND_ORIGIN for the Next.js proxy rewrites.
- FRONTEND_PORT=${FRONTEND_PORT:-3000}
- BACKEND_PORT=${BACKEND_PORT:-8000}
# domain in reverse proxy
- FRONTEND_BASE_URL=${FRONTEND_BASE_URL:-http://localhost:3000}
# Logging configuration: DEBUG, INFO, WARNING, ERROR
Expand Down
5 changes: 3 additions & 2 deletions docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ NC='\033[0m' # No Color
BOLD='\033[1m'

# Internal port configuration for single-port deployment.
FRONTEND_PORT="3000"
BACKEND_PORT="8000"
# Override via environment variables (e.g. docker run -e FRONTEND_PORT=4000).
FRONTEND_PORT="${FRONTEND_PORT:-3000}"
BACKEND_PORT="${BACKEND_PORT:-8000}"

# Print banner
print_banner() {
Expand Down