In my docker essay:
laravel: image: trackware links: - postgis:postgis ports: - "80:80" - "3306:3306" - "443:443" - "220:22" - "8000:8000" net: "host" restart: always volumes: - C:/H/repositories/pubnub:/share container_name: laravel postgis: image: mdillon/postgis env_file: .postgis_env ports: - "9090:9000" - "54320:5432" container_name: postgis
if I run docker-compose up -d
, I get this error:
Conflicting options: host type networking can't be used with links. This would result in undefined behavior
So how to use net: "host"
when linking to a postgis container? The laravel container must run the pubnub client, which requires a high-performance network to process messages in real time, and also to communicate with the postgis
container to access db.
So any tips? I am using docker 1.10.2
source share