21
ogtega
7y

I have spent the last 24 hours trying to connect a postgres db and a docker contained application both running on the same vps.

What no one told me was docker applications run on a separate network interface…

I need sleep...

Comments
  • 1
    Maybe it's about time Chris Fidao's expensive shipping docker course hehe. I will buy it in the future. As well as scaling laravel. Better invest in myself than bad vices.
  • 1
    I'm going to put this here for my own and other's future reference.

    add this rule to ufw
    ufw allow from 172.17.42.1/16 to any port [port]

    Then from the container connect to [host's static IP]
  • 2
    The docker team gave/gives out free courses on udemy, if you ever need a 1-2 hour course in it
  • 0
  • 0
    @Npstr I can't use host networking while linking containers
Add Comment