This repository provides Docker-based deployment configurations for the Aftermath Archive application, including both a standalone setup, and a setup with MongoDB included.
/ # Base deployment setup (assumes external MongoDB)
/docker-with-mongodb # Deployment setup that includes MongoDB as a service
| Setup | Use Case |
|---|---|
/ (Standard Setup) |
If you already have a MongoDB database hosted separately. |
/docker-with-mongodb/ |
If you want a self-contained deployment with MongoDB in Docker. |
This setup assumes that you have an existing MongoDB database, either:
- Self-hosted on a separate server or cloud provider.
- Using MongoDB Atlas or another managed database service.
- Clone this repo:
https://github.com/Aftermath-Archive/docker-deployment cd docker-deployment - Create the necessary .env files based on the examples:
cp .backend.env.example .backend.env cp .frontend.env.example .frontend.env - Run the deployment:
docker compose up -d - Verify that the services are running:
docker ps
This setup includes a MongoDB service within Docker, making it a self-contained environment.
- Clone this repo:
https://github.com/Aftermath-Archive/docker-deployment cd docker-deployment/docker-with-mongodb - Create the necessary .env files based on the examples:
cp .backend.env.example .backend.env cp .frontend.env.example .frontend.env - Run the deployment:
docker compose up -d - Verify that the services are running:
docker ps - If you need to connect to MongoDB manually (eg, for debugging):
docker exec -it mongodb mongosh
To stop and remove all containers, run:
docker compose down
For the MongoDB version, you may also want to remove the volume:
docker compose down -v
- Automating deployments with GitHub Actions.
- Adding Docker secrets for managing environment variables securely.
- Implementing HTTPS using Traefik or Nginx with SSL certificates.
🚀 Now you’re ready to deploy Aftermath Archive! Let us know if you run into any issues. 🎉