Skip to content

refortunato/SwooleApiHttpExample

Repository files navigation

Swoole Http Example

This application is an example using Swoole HTTP with PSRs 7, 11 for Http Requests, Responses and Controllers.

How to execute - local

Run:

# For the first time
docker-compose up --build

# If it's already built
docker-compose up

And then enter in container console:

docker exec -it php_app_swoole_http bash

Inside container, run:

php /var/www/framework/start-swoole-http.php

How to build image

Run:

docker build -t myaccount/my_app_name:1.0.0 -f ./docker-build/Dockerfile .

Execute image locally

Run:

docker run  -p 80:9501 --name my_swoole_app myaccount/myapp_name:1.0.0

Stop image locally:

docker stop my_swoole_app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published