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

前端 未结 0 578
清酒与你
清酒与你 2021-01-05 16:54
version: \'3\'
services:
   my_app:
     build: ./api
     environments:
       - DB_HOST=192.168.10.1 #Physical IP database server

Doc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题