How can I configure my docker-compose for connect my ‘app’ running in docker containner to my ‘database’ running in physical machine

  docker, docker-compose, gateway, networking
version: '3'
services:
   my_app:
     build: ./api
     environments:
       - DB_HOST=192.168.10.1 #Physical IP database server

Docker Engine Server IP: 192.168.20.1

Source: Docker Questions

LEAVE A COMMENT