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

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 55

  • @CapCoding
    @CapCoding  4 роки тому +2

    What do you do to speed-up docker on OSX? Especially when xdebug is enabled.

    • @vladislavkarpenko6064
      @vladislavkarpenko6064 3 роки тому +1

      nfs or mutagen

    • @CapCoding
      @CapCoding  3 роки тому

      @@vladislavkarpenko6064 Thanks! I didn't hear about mutagen before. It will be interesting to read about it.

  • @annadunets5665
    @annadunets5665 9 місяців тому +1

    Thank you for the video. How do you use Symfony console CLI? From inside the php container or from local?

    • @CapCoding
      @CapCoding  9 місяців тому +1

      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

  • @jnmldo
    @jnmldo 2 роки тому +1

    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 3 роки тому +1

    Thanks so much 👍. Great video

    • @CapCoding
      @CapCoding  3 роки тому +1

      You’re welcome 🙂 I’m glad you like it

  • @zugdsbtngizudsgbnudsdsoiu
    @zugdsbtngizudsgbnudsdsoiu 3 роки тому +2

    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

  • @neriepalma2708
    @neriepalma2708 2 роки тому

    G
    Needed

  • @aminkhoshzahmat
    @aminkhoshzahmat 3 роки тому +2

    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

  • @hyperannatv3387
    @hyperannatv3387 Рік тому

    Sir why u use Php storm and not vscode? Any advantages sir?

  • @diegoquiroga4895
    @diegoquiroga4895 3 роки тому +1

    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  3 роки тому

      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.

    • @diegoquiroga4895
      @diegoquiroga4895 3 роки тому

      @@CapCoding Thanks man !! I join telegram but can post anything :/

    • @CapCoding
      @CapCoding  3 роки тому

      @@diegoquiroga4895 I see you managed to do it 🙂

  • @CaimAstraea
    @CaimAstraea 3 роки тому +1

    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

  • @V3ritas1989
    @V3ritas1989 3 роки тому +1

    please consider adding a hotkey overlay to your videos

    • @CapCoding
      @CapCoding  3 роки тому +1

      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 роки тому +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 роки тому +1

      Thanks for your input. I’ve added this topic to my list 🙂

  • @ИмяФамилия-ч2г4о
    @ИмяФамилия-ч2г4о 3 роки тому +2

    7:15 И рисуем остальную сову)

  • @codingfox
    @codingfox 3 роки тому +4

    Англ-чангл)

    • @CapCoding
      @CapCoding  3 роки тому +1

      😁

    • @Vimble
      @Vimble 3 роки тому

      Здравствуй, друг)

  • @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?

  • @tengizgusev6293
    @tengizgusev6293 2 роки тому

    Uncaught Exception: Unable to write in the "logs" directory (/app/var/log).

  • @АртемиоБузкетс
    @АртемиоБузкетс 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 роки тому +1

      Привет, @Vimble!
      Так сходу похоже, что пароль не правильный, но подозреваю, что ты все сделал по уроку и это то, что ты проверил в первую очередь. Чтобы много не писать тут, можешь добавиться в мой телеграмм-канал и мы обсудим эту проблему подробно там: t.me/capcodingchat

    • @Vimble
      @Vimble 3 роки тому +1

      @@CapCoding воу, это круто что ты ответил на русском) Я уже разобрался с этим, но всё равно спасибо 🥰

    • @Vimble
      @Vimble 3 роки тому

      @@CapCoding ааа, кажется ты русский, ну туплю я, да)

    • @CapCoding
      @CapCoding  3 роки тому

      @@Vimble я не русский, но по-русски говорю 🙂
      Хорошо, что разобрался с проблемой!

  • @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 роки тому

    есть телеграм чат?

  • @ginageorge392
    @ginageorge392 3 роки тому +1

    все супер, вот на русском можно сделать такое видео .спасибо вам большое

  • @mephi5t0
    @mephi5t0 3 роки тому

    Nginx (pronounced "engine X", /ˌɛndʒɪnˈɛks/ EN-jin-EKS)