Skip to content

About

local docker environment skeleton for RoadRunner

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

roadrunner-docker-skeleton

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

Auto-Reloading

Auto reloading is enabled by default. RoadRunner detects PHP file changes and reload connected services. To turn off this feature, remove the reload section in .rr.yaml.

see: Roadrunner : Auto-Reloading

Directory structure

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

About

local docker environment skeleton for RoadRunner

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages