- POST
- https://localhost/v1/user
-
{"userExternalId": "5c4132cd-4f65-4b22-9c94-bc3d8113aba6"}
- POST
- https://localhost/v1/credit
-
{ "amount": 10, "userExternalId": "5c4132cd-4f65-4b22-9c94-bc3d8113aba6", "creditPriority" : 1, "type" : "refund", "expiredAt": null, "note":"normal", "requestId": "random-string" }
-
{ "amount": 15, "userExternalId": "5c4132cd-4f65-4b22-9c94-bc3d8113aba6", "creditPriority" : 2, "type" : "marketing", "expiredAt": "2024-02-08 13:25:00", "note":"expired", "requestId": "random-string" }
- POST
- https://localhost/v1/credit/spend
-
{ "userExternalId": "7c44dcd0-f17b-479c-a896-bb64e8df7f9f", "amount":50, "requestId": "random-string" }
A Docker-based installer and runtime for the Symfony web framework, with FrankenPHP and Caddy inside!
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cache
to build fresh images - Run
docker compose up --pull always -d --wait
to start the project - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphans
to stop the Docker containers.
- Production, development and CI ready
- Just 1 service by default
- Blazing-fast performance thanks to the worker mode of FrankenPHP (automatically enabled in prod mode)
- Installation of extra Docker Compose services with Symfony Flex
- Automatic HTTPS (in dev and prod)
- HTTP/3 and Early Hints support
- Real-time messaging thanks to a built-in Mercure hub
- Vulcain support
- Native XDebug integration
- Super-readable configuration
Enjoy!
- Build options
- Using Symfony Docker with an existing project
- Support for extra services
- Deploying in production
- Debugging with Xdebug
- TLS Certificates
- Using a Makefile
- Troubleshooting
- Updating the template
Symfony Docker is available under the MIT License.
Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.