Recommended

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.

Local installation

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"

Docker

OpenRat-CMS is available at Dockerhub.

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.

Complete environment with docker-compose

You may use docker-compose to create a complete runtime environment with a database.

Create a file docker-compose.yml with the following content

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"
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: {}

After starting with docker-compose up -d the CMS is reachable at http://localhost:8000