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 : https://github.com/sameersbn/docker-redmine, to connect my container with external postgresql.

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

  • Docker Error getting events from daemon: EOF
  • How long should I wait when I run `docker-compose up`? What should I do to retry?
  • Connect docker container to both internet and VPN
  • Docker-compose internal communication using endpoints
  • Create a new image using REST API by placing the content in the request body
  • Retrieve application config from secure location during task start
  • docker run --name redmine -it -d \
    --publish=10083:80 \
    --env='REDMINE_PORT=10083' \
    --env='DB_ADAPTER=postgresql' \
    --env='DB_HOST=192.168.100.6' \
    --env='DB_NAME=redmine_production' \
    --env='DB_USER=redmine' --env='DB_PASS=password' \
    redmine-docker
    

    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.

  • Supervisord in Docker + AWS Elastic Beanstalk can't accept non-alphanumeric environment variables
  • Docker exits immediately after run. However, Kitematic runs without issue
  • Increasing the AWS ECS Task Definition reserved ports limit
  • how to setup a docker image on Arukas.io?
  • “Error: mysqli_connect() No Such File or Directory”. PHP 7 FPM, MariaDB, Nginx, Docker
  • Set hostname of service container to host's hostname
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.