This folder contains a simple single-server deployment target for the app.
docker-compose.prod.yml- production stack with the app and MongoDB
app.env.example- environment variables you should copy and customize before deployment
- Copy the example env file:
cp deploy/app.env.example deploy/app.env-
Edit the passwords and usernames in
deploy/app.env. -
Start the production stack:
docker compose --env-file deploy/app.env -f deploy/docker-compose.prod.yml up -d --build- Check health:
curl http://localhost:8080/actuator/health- The production profile uses MongoDB for persisted course documents.
- Swagger UI is disabled in the production profile.
- The app still exposes
/actuator/healthfor deployment checks. - For internet-facing deployment, put a reverse proxy or load balancer in front of the app.