This repository contains a complete Docker Compose setup for Apostrophe CMS with all required services.
- Apostrophe CMS: The main web application
- MongoDB: Database for Apostrophe
- Redis: Optional caching server for better performance
- Mongo Express: Web-based MongoDB admin interface
- Clone this repository
- Start all services with Docker Compose:
docker-compose up -d- Access the Apostrophe CMS: http://localhost:3000
- Access Mongo Express: http://localhost:8081
For development with hot reloading, use:
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -dEnvironment variables are stored in the .env file. For production, you should change:
SESSION_SECRET: Set to a secure random stringNODE_ENV: Change toproduction
- Start containers:
docker-compose up -d - Stop containers:
docker-compose down - View logs:
docker-compose logs -f - Rebuild containers:
docker-compose up -d --build
MongoDB and Redis data are stored in Docker volumes for persistence between restarts:
mongodb_dataredis_data
To remove all data and start fresh:
docker-compose down -v