How to dockerize Symfony 5 project with Nginx and Postgres (using docker-compose)

  Рет қаралды 19,084

Cap Coding

Cap Coding

Күн бұрын

Пікірлер: 55
@CapCoding
@CapCoding 4 жыл бұрын
What do you do to speed-up docker on OSX? Especially when xdebug is enabled.
@vladislavkarpenko6064
@vladislavkarpenko6064 3 жыл бұрын
nfs or mutagen
@CapCoding
@CapCoding 3 жыл бұрын
@@vladislavkarpenko6064 Thanks! I didn't hear about mutagen before. It will be interesting to read about it.
@jnmldo
@jnmldo 2 жыл бұрын
Thank you very much for this excellent video!
@CapCoding
@CapCoding 2 жыл бұрын
You welcome! I’m glad that you liked it :)
2 жыл бұрын
This is amazing and detailed explanation. Great work done. Thank you for crating and sharing this value informations.
@CapCoding
@CapCoding 2 жыл бұрын
Glad you enjoyed it, Josip!
@adrianfgutierrez2836
@adrianfgutierrez2836 4 жыл бұрын
Thanks so much 👍. Great video
@CapCoding
@CapCoding 4 жыл бұрын
You’re welcome 🙂 I’m glad you like it
@annadunets5665
@annadunets5665 11 ай бұрын
Thank you for the video. How do you use Symfony console CLI? From inside the php container or from local?
@CapCoding
@CapCoding 11 ай бұрын
I use it inside the php container as not always the PHP version is the same in the host machine and in the container. Also your app might require PHP-extensions that are not installed in host
@CaimAstraea
@CaimAstraea 3 жыл бұрын
Did you do something special for permissions ? composer create-project generated files are owned by root of the container so I can't edit them on my machine.
@CapCoding
@CapCoding 3 жыл бұрын
I didn't do anything extra. Only for "prod" I grant access to files for www-data user: github.com/Cap-Coding/symfony_docker/blob/master/Dockerfile_prod#L68
@hyperannatv3387
@hyperannatv3387 Жыл бұрын
Sir why u use Php storm and not vscode? Any advantages sir?
@zugdsbtngizudsgbnudsdsoiu
@zugdsbtngizudsgbnudsdsoiu 3 жыл бұрын
Honestly the video is not bad because its the only one available so far but you still miss many details and often times its just "Copy config here". For example you dont say a single word to the PHP environment variables your are using. You just copy serverName=docker.for.mac.localhost into there and people cant follow this. This video helped me but im still struggling to setup phpunit and xdebug.
@CapCoding
@CapCoding 3 жыл бұрын
Thank you for your feedback. I'll try to consider it in my future videos. Have you managed to setup xdebug?
@zugdsbtngizudsgbnudsdsoiu
@zugdsbtngizudsgbnudsdsoiu 3 жыл бұрын
Yeah so far its working. The biggest problem I have is permissions, because im on Windows I get permissions error for cache and var all the time. Also I have now enabled PHPUnit for testing on docker container but I have the problem that I get warning: "Multiple definitions exist for class 'TestCase' for PHPUnit because of the symlink in vendor/bin/.phpunit. Do you have a solution for this?
@CapCoding
@CapCoding 3 жыл бұрын
As far as I know, text "Multiple definitions exist for class 'TestCase'" is shown only in IDE. It's not really an error and you can ignore it
@aminkhoshzahmat
@aminkhoshzahmat 3 жыл бұрын
Add "--if-exists" at the end of the drop database line, you might get errors when you don't have the database, like this: symfony console doctrine:database:drop --if-exists --force
@CapCoding
@CapCoding 3 жыл бұрын
Yes, make sense
@avecilla4895
@avecilla4895 4 жыл бұрын
This is an amazing explanation, IM trying to get the welcome page of symphony on the localhost:80 but it's just not working, I'm using your tutorial any help?
@CapCoding
@CapCoding 4 жыл бұрын
Hi Diego! Thank you for good feedback, I'm glad that you found this tutorial useful. I need more information about your problem. If you want you can reach me in facebook, write email or post in telegram chat.
@avecilla4895
@avecilla4895 4 жыл бұрын
@@CapCoding Thanks man !! I join telegram but can post anything :/
@CapCoding
@CapCoding 4 жыл бұрын
@@avecilla4895 I see you managed to do it 🙂
@michaelbrauner
@michaelbrauner 2 жыл бұрын
Hello. Is there any reason for you not to use unix port to connect php-fpm and nginx?
@CapCoding
@CapCoding 2 жыл бұрын
Hi! No reasons. You can use one way or another one. Up to you
@michaelbrauner
@michaelbrauner 2 жыл бұрын
@@CapCoding Is a unix port not much faster?
@V3ritas1989
@V3ritas1989 3 жыл бұрын
please consider adding a hotkey overlay to your videos
@CapCoding
@CapCoding 3 жыл бұрын
Very valuable feedback, thank you. I'll definitely do this
@michaelbrauner
@michaelbrauner 2 жыл бұрын
Hey! I really would love to see more videos from you. But it seems you don't do videos anymore. Is that right?
@CapCoding
@CapCoding 2 жыл бұрын
Hi Michael! I still do videos but unfortunately I had a very long pause due to different reasons (health issues and war in Ukraine). Definitely I should communicate this better to my audience... But now I'm back on track and I work on Symfony course which I have started in September. I plan to release it very soon (hopefully before the mid of May) Thank you for your interest and be tuned!
@michaelbrauner
@michaelbrauner 2 жыл бұрын
@@CapCoding Oh, cool. Glad to hear that. I like your calmness and your level - it's not beginner. And you explain it very thoroughly. I stay tuned ;) .
@michaelbrauner
@michaelbrauner 2 жыл бұрын
@@CapCoding Especially I would be interested in a complete docker workflow (local - github - server provider like hetzner cloud). That would be great. Maybe also with a working CI including running tests and github hooks to automaticly trigger a deployment. For me that is an area of mystery yet.
@CapCoding
@CapCoding 2 жыл бұрын
Thanks for your input. I’ve added this topic to my list 🙂
@neriepalma2708
@neriepalma2708 3 жыл бұрын
G Needed
@CapCoding
@CapCoding 3 жыл бұрын
What do you mean?
@ИмяФамилия-ч2г4о
@ИмяФамилия-ч2г4о 3 жыл бұрын
7:15 И рисуем остальную сову)
@CapCoding
@CapCoding 3 жыл бұрын
😁
@АртемиоБузкетс
@АртемиоБузкетс 3 жыл бұрын
I get error, while run php container standard_init_linux.go:219: exec user process caused: no such file or directory Host Machine windows 10
@CapCoding
@CapCoding 3 жыл бұрын
Hi! There is an open issue on GitHub github.com/Cap-Coding/symfony_docker/issues/1 Looks like the same issue. Unfortunately I don't have a Windows machine to reproduce this problem
@Vimble
@Vimble 3 жыл бұрын
У меня Postgres выдаёт ошибку о не правильном пароле для пользователя, почему так?
@CapCoding
@CapCoding 3 жыл бұрын
Привет, @Vimble! Так сходу похоже, что пароль не правильный, но подозреваю, что ты все сделал по уроку и это то, что ты проверил в первую очередь. Чтобы много не писать тут, можешь добавиться в мой телеграмм-канал и мы обсудим эту проблему подробно там: t.me/capcodingchat
@Vimble
@Vimble 3 жыл бұрын
@@CapCoding воу, это круто что ты ответил на русском) Я уже разобрался с этим, но всё равно спасибо 🥰
@Vimble
@Vimble 3 жыл бұрын
@@CapCoding ааа, кажется ты русский, ну туплю я, да)
@CapCoding
@CapCoding 3 жыл бұрын
@@Vimble я не русский, но по-русски говорю 🙂 Хорошо, что разобрался с проблемой!
@tengizgusev6293
@tengizgusev6293 2 жыл бұрын
Uncaught Exception: Unable to write in the "logs" directory (/app/var/log).
@codingfox
@codingfox 4 жыл бұрын
Англ-чангл)
@CapCoding
@CapCoding 4 жыл бұрын
😁
@Vimble
@Vimble 3 жыл бұрын
Здравствуй, друг)
@satyendrasingh9452
@satyendrasingh9452 4 жыл бұрын
plz share git url
@CapCoding
@CapCoding 4 жыл бұрын
Hi. The link was in the description: github.com/Cap-Coding/symfony_docker
@emotional_stuff
@emotional_stuff 2 жыл бұрын
есть телеграм чат?
@CapCoding
@CapCoding 2 жыл бұрын
t.me/capcodingchat
@ginageorge392
@ginageorge392 3 жыл бұрын
все супер, вот на русском можно сделать такое видео .спасибо вам большое
@mephi5t0
@mephi5t0 3 жыл бұрын
Nginx (pronounced "engine X", /ˌɛndʒɪnˈɛks/ EN-jin-EKS)
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 367 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Top 8 Docker Best Practices for using Docker in Production
18:27
TechWorld with Nana
Рет қаралды 315 М.
docker stack is my new favorite way to deploy to a VPS
27:47
Dreams of Code
Рет қаралды 144 М.
PHP Docker Tutorial - Nginx - PHPFPM VS Apache - Full PHP 8 Tutorial
14:39
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 466 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 265 М.
FREE Domain and SSL for Local Network | Nginx Proxy Manager on Docker - #13
16:22
Tech - The Lazy Automator
Рет қаралды 81 М.
Don't use local Docker Volumes
12:43
Christian Lempa
Рет қаралды 187 М.
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 281 М.