An open API service indexing awesome lists of open source software.

https://github.com/michaelbunch/docker-roadrunner


https://github.com/michaelbunch/docker-roadrunner

docker php

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# RoadRunner

A simple container for running a PHP application using the [RoadRunner](https://github.com/spiral/roadrunner) application server.

## Build Image

```
docker build -t michaelbunch/roadrunner: .
```

## How it works

Inside the container is a `/app` folder for your project code. RoadRunner will look in that
folder for a `.rr.yaml` file when starting.

In your `Dockerfile` ADD/COPY the application root to `/app` in the container.

## Run the container

```
docker run --name rr_app -p "8080:8080" michaelbunch/roadrunner:latest
```

This will run the `michaelbunch/roadrunner` container under the name `rr_app` on port `8080`.