n1215/roadrunner-docker-skeleton

A local docker environment skeleton for RoadRunner

Installs: 46

Dependents: 0

Suggesters: 0

Stars: 22

Watchers: 1

Forks: 5

Open Issues: 0

Language:Dockerfile

Type:project

0.4.5 2019-09-06 14:54 UTC

README

A local docker environment skeleton for RoadRunner, the PHP application server written in golang.

Latest Stable Version License Travis build status

Install

via Composer

composer create-project --prefer-dist n1215/roadrunner-docker-skeleton your_app

via Git

git clone https://github.com/n1215/roadrunner-docker-skeleton.git your_app
cd your_app

# install dependencies
composer install

# init config
composer init-config

Start/Stop the docker container

Start

docker-compose up -d

and access http://localhost:8080

Stop

docker-compose down

Utils

Reset PHP workers in the container. (to reload your PHP source code)

composer reset-workers

Show PHP workers' status

composer show-workers

Watch PHP source code change and reload PHP workers

composer watch

Directory structure

  • containers contains Dockerfile for RoadRunner.
  • etc/roadrunner contains RoadRunner config files.
  • worker.php worker's entry point file