https://github.com/alvarovalverde03/ghost-docker
🚀 Easily deploy a Ghost blog with Docker Compose and PM2
https://github.com/alvarovalverde03/ghost-docker
docker docker-compose ghost ghost-cms
Last synced: 2 months ago
JSON representation
🚀 Easily deploy a Ghost blog with Docker Compose and PM2
- Host: GitHub
- URL: https://github.com/alvarovalverde03/ghost-docker
- Owner: alvarovalverde03
- Created: 2024-05-05T18:17:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T19:20:45.000Z (almost 2 years ago)
- Last Synced: 2024-08-09T20:47:57.850Z (almost 2 years ago)
- Topics: docker, docker-compose, ghost, ghost-cms
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ghost blog setup
This project uses Docker Compose to run a Ghost blog in development and production environments. It also uses PM2 to manage the application processes.
## 📋 Requirements
To run this project, you will need:
- [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/)
- [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/)
- [PM2](https://pm2.keymetrics.io/)
Please ensure that you have these installed before proceeding.
## 🛠️ Development
To start the development environment, run:
```bash
npm run start:dev
```
This will start the Docker Compose setup for development.
## 🚀 Production
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:
```bash
npm run start:prod
```
This will start the Docker Compose setup for production.
## 🔄 Using PM2
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:
```bash
pm2 start app.config.js --only dev
```
For production:
```bash
pm2 start app.config.js --only prod
```