[SOLVED] Bagaimana koneksikan Docker Container App ke Database Local Studi Kasus Laravel + PostgreSQL pada MacOs

Mudah sekali. Langkahnya adalah:

  1. Buka file .env
  2. ubah DB_HOST ke host.docker.internal
  3. kemudian jalankan docker-compose up -d --build

--

--

Budiaramdhan Rindi

Currently work as Coder since 2011 and still have to learn. Dota 2 and Football Manager are the games I still play to stay fresh.