Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 937 Bytes

File metadata and controls

39 lines (26 loc) · 937 Bytes

Production Deployment

This folder contains a simple single-server deployment target for the app.

Files

  • docker-compose.prod.yml
    • production stack with the app and MongoDB
  • app.env.example
    • environment variables you should copy and customize before deployment

Quick start

  1. Copy the example env file:
cp deploy/app.env.example deploy/app.env
  1. Edit the passwords and usernames in deploy/app.env.

  2. Start the production stack:

docker compose --env-file deploy/app.env -f deploy/docker-compose.prod.yml up -d --build
  1. Check health:
curl http://localhost:8080/actuator/health

Notes

  • The production profile uses MongoDB for persisted course documents.
  • Swagger UI is disabled in the production profile.
  • The app still exposes /actuator/health for deployment checks.
  • For internet-facing deployment, put a reverse proxy or load balancer in front of the app.