To use postgres, I had to start from another ubutnu image:
FROM sameersbn/postgresql:9.4-12
and at the end of the Dockerfile, I added:
apt-get update
apt-get install php5-pgsql
but the resulted container said:
SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "postgis" (172.17.0.2) and accepting
TCP/IP connections on port 54320?
Hello,
To use postgres, I had to start from another ubutnu image:
and at the end of the Dockerfile, I added:
but the resulted container said:
in my .env file I used:
Although I am linking to the postgis image as:
laravel: image: docker-laravel-postgres links:
postgis: image: mdillon/postgis volumes:
the only way was to use my docker api url 192.168.99.100 as:
DB_HOST=192.168.99.100
Any idea?