Рет қаралды 4,211
Repo link: github.com/Ten...
In this video I will show you how to setup Laravel with Docker. You will have a Docker Compse file which will contain the Postgres Database (You can use MySQL or any other DB you want), Redis and a Worker for potential jobs you might be running.
We will also setup Caddy web server that can be used as a reverse proxy and to serve static files.
I will go through a setup on how to use this in a development environment but also how to this when you want to run these containers in a more serious manner.
The setup is quick and simple and it gets your app going fast. The setup is very scalable, which means we can run multiple app and worker services that can be load balanced if it comes to that. Also you can host this very easily on your server just by following what I did, developing your app and just cloning it on your local server and running it via Docker.
You can also experiment with different PHP Images, maybe you can use a serversideup image or just remove Caddy and PHP-FPM and use FrankenPHP, there are lots of possibilities.
Hope this video helped you!