A Symfony Docker app deployed with Kamal, using the symfony-docker template. Deploy your Symfony project on any VPS in less than 15s, no docker registry needed!
- PHP 8.4
- FrankenPHP
- kamal.
- Deployed to a single VPS on Digital Ocean
- Setup symfony-docker
- Setup kamal
- Deploy on a Digital Ocean droplet
- Hide env vars using Symfony secrets or a lastpass configuration
- Hide server IP address
- Add Mercure deployment
- Add monitoring
config/deploy.yml: the deploy configuration.kamal/secrets: secrets configuration, to be pulled from an external vault in the futurefrankenphp/Caddyfile: allow http request on /up- A new route
/upserving as healthcheck
- Clone this project
git clone https://github.com/florentdestremau/symfony-kamal.git - If not already done, install Docker Compose (v2.10+)
- Run
make startto build fresh images and start the Docker containers - Run
make upto start the project afterwards. - Open
https://symfony-kamal.localhostin your favorite web browser - Run
make downto stop the Docker containers.