Skip to content
A docker-compose environment for RIDI CMS system
PHP Makefile
Branch: master
Clone or download
Latest commit 5109ae5 Jul 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
phinx
.env.sample
.gitignore
Makefile
README.MD
composer.json
composer.lock
docker-compose.db.yml
docker-compose.yml
phinx.yml

README.MD

CMS Docker Compose

A docker-compose environment for RIDI CMS Service.

Background

This project offers docker images for CMS service development. The docker images include CMS for authentication, CMS-Admin for authorization, database, and haproxy for routing between these services.

If you build a new service for the CMS, it should be bound to the haproxy. The default path and port for your service can be found in .env.sample.

Setup

  1. make install
  2. make up will start the docker containers.
  3. Wait for several seconds until the conainers startup.
  4. make db-migrate for sample db migration. If it fails, try again in a few seconds.
  5. Run your CMS service app at the port and path described in .env.
  6. make down for shutting down the containers.

(Optional)HTTPS

  1. Add docker/haproxy/ssl.merge into your keychain and make it trusted.
  2. Add 127.0.0.1 admin.ridibooks.com in /etc/hosts
  3. open https://admin.ridibooks.com in the browser.
You can’t perform that action at this time.