HUB
Sign inSign up

openrat/openrat-cms

By openrat

•Updated 24 days ago

OpenRat CMS

Image
0

2.2K

openrat/openrat-cms repository overview

⁠OpenRat Content Management System

Screenshot

⁠About

OpenRat is a statifying CMS.

OpenRat generates static files, which are served by a dedicated live web server like Apache, Nginx, Boa etc.

Unlike popular static site generators like Jekyll, JBake etc. OpenRat CMS contains a complete Web UI with user management.

⁠Why OpenRat?

Yes, there are a lot of good CMS in the world, and a lot of them are available for free. Why should you use OpenRat CMS?

OpenRat combines the world of static site generators with a complete web UI. Editors do not have to use a version control system, they only use their browser.

⁠Install

⁠Requirements

You need a server with PHP >= 5.5 and a relational database.

MariaDB and MySQL are recommended, while PostgresQL and SQLite are supported too.

⁠Docker
⁠Docker-Compose

The easiest way is to start the content-management-system inside a docker machine. Copy the following lines to a file named docker-compose.yml.

version: '3.3'

services:
  db:
    image: mysql:5.7
    volumes:
      - db_data:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: uoia97723sdsd9782
      MYSQL_DATABASE: cms
      MYSQL_USER: cms
      MYSQL_PASSWORD: dsfg77er35fsd08435
  cms:
    depends_on:
    - db
    image: openrat/openrat-cms:latest
    ports:
    - "8000:8080" # CMS
    - "8001:8081" # public
    - "8002:8082" # public with host routing
    restart: always
    environment:
      DB_TYPE: mysql
      DB_HOST: db
      DB_USER: cms
      DB_PASS: dsfg77er35fsd08435
      DB_NAME: cms
      CMS_MOTD:
      CMS_NAME: Content-Management
      CMS_OPERATOR: Your Company
  volumes:
    db_data: {}

Start the environment with docker-compose up -d.

Now the CMS is available on http://localhost:8000⁠ The published website is available on http://localhost:8001⁠

⁠Run the docker container

Download and run the docker image from Dockerhub⁠:

docker run -d -p 8080:8080 -e DB_HOST=$host -e DB_NAME=$name -e DB_USER=$user -e DB_PASS=$pass openrat/openrat-cms

Be sure to replace the variables. You need a database to use this way.

⁠Environment variables for Docker

The following environment variables could be set in the docker container:

NameDescriptionDefault
DB_TYPEdatabase typemysql
DB_HOSTdatabase hostnamelocalhost
DB_NAMEdatabase schemacms
DB_USERdatabase user
DB_PASSdatabase password
CMS_MOTDMessage of the dayWelcome to dockerized CMS
CMS_NAMESoftware nameOpenRat CMS (Docker)
CMS_OPERATORName of your companyDocker-Host
⁠Local installation

Of course the old style local installation is possible with the following steps.

⁠Download and untar it

Download the last release from Github and install it on your server:

https://github.com/dankert/openrat-cms/releases⁠

⁠Clone GIT repository

Or clone the GIT repository with the command

git clone http://git.code.weiherhei.de/openrat-cms.git

or from Github

git clone https://github.com/dankert/openrat-cms.git

⁠Add database configuration

Edit the file config/config.yml and enter your database access data, like:

database:
  db:
    enabled : true
    dsn     : "mysql:host=localhost; dbname=name_of_db; charset=utf8"
    user    : "user"
    password: "password"

Tag summary

Content type

Image

Digest

sha256:e92c04a19…

Size

20.8 MB

Last updated

24 days ago

docker pull openrat/openrat-cms