This project uses the Utopia framework and Swoole to build a very simple API, demonstrating how to define routes and start the server, both found in the server entrypoint ./app/server.php
.
git clone https://github.com/utopia-php/demo
cd demo
docker-compose up -d
The docker-compose config will mount the root folder to /app
in the container, so you can actively develop your code. To apply changes, restart the stack with:
docker-compose restart