MongoDB database configuration for the PatientOutcome PROM (Patient Reported Outcome Measures) application.
Current Version: 0.2
This repository contains the Docker Compose configuration for running MongoDB as the database backend for the PatientOutcome application.
- Docker and Docker Compose installed
- At least 2GB of free disk space
-
Copy the environment template:
cp .env.example .env
-
Edit
.envand set your database credentials:DATABASE_ADMIN=your_admin_user DATABASE_ADMIN_PASSWORD=your_secure_password DATABASE_NAME=patientoutcome
-
Start the database:
docker compose up -d
-
Verify it's running:
docker compose ps
| Variable | Description | Default |
|---|---|---|
DATABASE_ADMIN |
MongoDB root username | patientmanager |
DATABASE_ADMIN_PASSWORD |
MongoDB root password | (required) |
DATABASE_NAME |
Database name | patientoutcome |
The docker-compose.yml file defines:
- MongoDB Service: Official MongoDB image
- Volume: Persistent data storage in
./mongo-data - Port: 27017 (default MongoDB port)
MongoDB data is stored in the ./mongo-data directory. This directory is git-ignored to prevent accidental commits of database files.
docker exec clinical-patientoutcome-database mongodump \
--username=your_admin \
--password=your_password \
--authenticationDatabase=admin \
--db=patientoutcome \
--archive=/data/db/backup.archivedocker exec clinical-patientoutcome-database mongorestore \
--username=your_admin \
--password=your_password \
--authenticationDatabase=admin \
--db=patientoutcome \
--archive=/data/db/backup.archive- Never commit
.envfiles with real credentials - Use strong passwords in production
- Consider enabling MongoDB authentication
- Regularly backup your data
This project is licensed under the MIT License - see the LICENSE file for details.
Victor Cighir