This project uses Docker Compose to run a Ghost blog in development and production environments. It also uses PM2 to manage the application processes.
To run this project, you will need:
- Node.js and npm
- Docker and Docker Compose
- PM2
Please ensure that you have these installed before proceeding.
To start the development environment, run:
npm run start:dev
This will start the Docker Compose setup for development.
Before running the production environment, make sure to complete the /environments/.env.prod
file with your production environment variables.
To start the production environment, run:
npm run start:prod
This will start the Docker Compose setup for production.
This project uses PM2 to manage the application processes. You can start the development or production environment with PM2 using the following commands:
For development:
pm2 start app.config.js --only dev
For production:
pm2 start app.config.js --only prod