Docker container not starting when connect to postgresql external

I have docker container with redmine in it and I have postgresql-95 running on my host machine, and I want to connect my redmine container to my postgresql. I followed this step :, to connect my container with external postgresql.

assuming my host machine with ip, so I ran this command :

  • how many docker containers should a java web app w/ database have?
  • Selenium Hub Node with Docker containers on different hosts
  • Source controlling (git) docker-compose.yml
  • The requested URL returned error: 502 when running git clone inside a Docker container
  • How to deploy AngularJS app using nginx + docker to Elastic Beanstalk?
  • How do I make a standalone application out of a Docker container?
  • docker run --name redmine -it -d \
    --publish=10083:80 \
    --env='REDMINE_PORT=10083' \
    --env='DB_ADAPTER=postgresql' \
    --env='DB_HOST=' \
    --env='DB_NAME=redmine_production' \
    --env='DB_USER=redmine' --env='DB_PASS=password' \

    The container running for 1 minute but suddenly it stopped even before it runs nginx and redmine in it. I Need help about this configuration. Thank you.

  • Trouble using AUFS driver in docker with Ubuntu
  • docker create service unavailable
  • Access rest api endpoint docker
  • Serving static files directly via a containerized front-end web server?
  • Failed to allocate gateway with docker stack
  • Git clone repo in Dockerfile
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.