Open-source blogs and content websites platform, made for the 21st century.
- Node.js
- NPM
- Docker / MongoDB
- (Optional: Redis)
- Docker
- Docker Compose
$ npm install
$ npm start
$ npm run dev
Running Greenpress via Docker-Compose is a very simple task. You might need to pre-install Docker and Docker Compose, and then run these commands:
$ cd compose
$ docker-compose up
When using dockerized solution, you can choose to run each service separately, and scale each service according to your needs. To run a composition that is more suitable to those cases, use the "scaled" yaml:
$ cd compose
$ docker-compose -f docker-compose.scaled.yml up
If you're using a small machine, such as shared hosting packages, or low cpu or memory cloud services, you should probably use the basic environment, such as the regular compose file, or directly using Node.js.
There are 2 ways to extend the default Greenpress configurations.
Basic way is by environment variables, and the second part is to add a greenpress.config.js
file to your project's root folder.
The greenpress.config.js
can either export the configuration object, or export a function that will get the base configuration object, and expected to return a new configuration object.
Note that the base configuration object passed to the function will include data that calculated by environment variables before.