Ngrok: Expose Database in Docker Container

I have a web application built with Elixir that uses a Postgres database in a docker container (

I need to expose the web interface (running on port 4000) and the database in the docker container.

  • Dockerfile, how to create images ubuntu 14.04
  • fluentd file plugin \ how to keep only latest X files?
  • Remote debugging node app in Docker
  • Postgres networking with Docker containers and host LAN
  • Sharing docker clusters
  • Dockerfile Script for Amazon AWS
  • I tried adding this to my configuration files:

        addr: 4000
        proto: http
        addr: 5432
        proto: tcp

    Then in my Elixir config/dev.exs I add this under the database configuration:

    hostname: "TCP_URL_GIVEN_BY_NGRROK"

    When I attempt to start the application, it says failure to connect to the database.

    The docker command that I used is:

    docker run --name phoenix-pg -e POSTRGRES_PASSWORD=postgres -d postgres

    What am I doing wrong?

  • Docker development version/snapshot
  • Run docker mongo with read-only fs
  • Docker Apache Proxy point to running Python Script
  • docker compose and jenkins
  • Docker OSX disc storage
  • how do I expose an http traffic of a docker container to the outside world
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.