n1215 / roadrunner-docker-skeleton
A local docker environment skeleton for RoadRunner
Installs: 227
Dependents: 0
Suggesters: 0
Security: 0
Stars: 92
Watchers: 5
Forks: 22
Open Issues: 0
Language:Shell
Type:project
Requires
- php: ^7.3 || ^8.0
- nyholm/psr7: ^1.4
- spiral/roadrunner: 2.12.2
- dev-master
- 1.9.1
- 1.9.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- dev-slimphp
This package is auto-updated.
Last update: 2024-11-14 11:00:07 UTC
README
A local docker environment skeleton for RoadRunner, the PHP application server written in golang.
HTTP Server and PHP Workers are enabled by default.
Requirements
- Bash
- Docker Compose
Install
via Git
git clone https://github.com/n1215/roadrunner-docker-skeleton.git your_app
cd your_app
./task init
via Composer
composer create-project --prefer-dist n1215/roadrunner-docker-skeleton your_app
cd your_app
./task init
Commands
Start the container
./task up
# with rebuilding image
# ./task up --build
and access http://localhost:8080
Stop the container
./task down
Login into the container
./task login
Show container log
./task logs
Execute RoadRunner commands
./task rr {command}
# ex) ./task rr help
Change RoadRunner version
1. change .env file
- RR_VERSION=2.x.y
+ RR_VERSION=2.z.w
2. run the initialization script
rebuild the RoadRunner image and update composer dependencies.
./task init
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 and the config file for RoadRunner.
- worker.php worker's entry point file