HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to dockerize Symfony 5 project with Nginx and Postgres from scratch

19,651 views October 15, 2020 34:40

Watch on YouTube
ChannelCap Coding

Chapters

Description from the creator

In this tutorial I explain how to #dockerize #Symfony 5 application with nginx and postgresql database and integrate it with PhpStorm. I show how to create new Symfony project and configure docker both for local development and for production. Also I show:
* how to use docker volumes
* how to setup xdebug
* how to use PHP interpreter from docker in PhpStorm
* how to connect to docker Postgres database from PhpStorm
* how to use Makefile
* what to do in case of issues with docker

In this video I use Symfony 5 with PHP 7.4 but this tutorial is still relevant for older versions of Symfony framework or PHP.

⭐️ Final result you can find here ⭐️
🔗 github.com/Cap-Coding/symfony_docker

⭐️ Support channel on Patreon ⭐️
🔗 patreon.com/capcoding

⭐️ Resources ⭐️
🔗 Install Symfony symfony.com/doc/current/setup.html#creating-sym…
🔗 Install docker docs.docker.com/engine/install/
🔗 Install docker-compose docs.docker.com/compose/install/
🔗 Install composer getcomposer.org/download/
🔗 Docker hub hub.docker.com/
🔗 Docker-compose mount flags: docs.docker.com/compose/compose-file/#caching-o…
🔗 Docker issue github.com/docker/for-mac/issues/77
🔗 Shared file access article medium.com/free-code-camp/speed-up-file-access-…
🔗 Docker-sync docker-sync.io/
🔗 How to get host IP address (and not only) nickjanetakis.com/blog/docker-tip-35-connect-to…
🔗 Symfony performance symfony.com/doc/current/performance.html
🔗 Book O'Reilly "Head first design patterns"
Amazon: amzn.to/2KVHD0D (new edition)
Amazon: amzn.to/2NMfTN9
Amazon DE: amzn.to/2Xq3TCt


🎥 All Symfony tutorials youtube.com/playlist?list=PLKQc-wMFDsrEt6U5LKLE…

Get € 20 on Hetzner Cloud hosting:
💲hetzner.cloud/?ref=GyXEuMSuxUBq

Register domain without hassle on GoDaddy
💲letyshops.com/r/godaddy-87becf0c4e38


⭐️ TABLE OF CONTENT ⭐️

00:00:00 Introduction
00:01:31 Create Symfony project
00:02:51 Configure Docker for local development
00:17:41 Setup xdebug
00:24:38 Configure Docker for production
00:30:05 Shortcuts with Makefile
00:31:55 Troubleshooting

About this tutorial

Cap Coding published this 34:40 video tutorial on October 15, 2020. It has been watched 19,651 times on YouTube.

Channel
Cap Coding
Category
Education
Duration
34:40
Published
October 15, 2020
Views
19,651
Likes
299

Tags

Share

This tutorial in other languages