docker-compose: no pg_hba.conf entry for hostPostgreSQL 9.2.4 (Windows 7) - Service won't start, “could not...

Is there a familial term for apples and pears?

A Journey Through Space and Time

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

N.B. ligature in Latex

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Mean and Variance of Continuous Random Variable

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Can I interfere when another PC is about to be attacked?

Can town administrative "code" overule state laws like those forbidding trespassing?

How does one intimidate enemies without having the capacity for violence?

Motorized valve interfering with button?

Why do we use polarized capacitor?

How to make payment on the internet without leaving a money trail?

Can a German sentence have two subjects?

Are white and non-white police officers equally likely to kill black suspects?

Is Social Media Science Fiction?

Can you lasso down a wizard who is using the Levitate spell?

Why is the design of haulage companies so “special”?

Calculus Optimization - Point on graph closest to given point

A function which translates a sentence to title-case

How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

What is GPS' 19 year rollover and does it present a cybersecurity issue?

What are these boxed doors outside store fronts in New York?



docker-compose: no pg_hba.conf entry for host


PostgreSQL 9.2.4 (Windows 7) - Service won't start, “could not load pg_hba.conf”Docker GUI to control remote Docker hostSubdirectories of docker mount not mounted correctly with docker-composedocker-compose up/down just one containerMigrating from docker-compose v2 to v3SSH tunnel with Docker PHP instanceDocker Compose with an l2bridge compose fileDocker Java Spring Boot RestFull MySql with Angular frontendMosca and Redis docker-composeCentos 7 Postgresql 9.6 error on replication






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to make a few containers that are started by a docker-compose to work with a remote AWS database (managed by Heroku). I configured the envs as shown bellow:



    environment:
- PG_HOST=xxx.compute-1.amazonaws.com
- PG_USER=xxx
- PG_PASS=xxx
- PG_DBNAME=xxx
- PG_PORT=5432


My problem is that the app recognizes the envs and returns a 'success' message as: Ready hosting xxx.compute-1.amazonaws.com to port 5432 !
but follows with a driver fail to pq: no pg_hba.conf entry for host "<gateway>", user "xxx", database "xxx", SSL off



I've tried copying a custom pg_hba.conf as follows to the container's volume /var/lib/postgresql/data:



local   all             all             all                     trust
host all all all trust


Also tried specifying the container's network_mode as network_mode: host, but it fails the same way.










share|improve this question







New contributor




Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I'm trying to make a few containers that are started by a docker-compose to work with a remote AWS database (managed by Heroku). I configured the envs as shown bellow:



        environment:
    - PG_HOST=xxx.compute-1.amazonaws.com
    - PG_USER=xxx
    - PG_PASS=xxx
    - PG_DBNAME=xxx
    - PG_PORT=5432


    My problem is that the app recognizes the envs and returns a 'success' message as: Ready hosting xxx.compute-1.amazonaws.com to port 5432 !
    but follows with a driver fail to pq: no pg_hba.conf entry for host "<gateway>", user "xxx", database "xxx", SSL off



    I've tried copying a custom pg_hba.conf as follows to the container's volume /var/lib/postgresql/data:



    local   all             all             all                     trust
    host all all all trust


    Also tried specifying the container's network_mode as network_mode: host, but it fails the same way.










    share|improve this question







    New contributor




    Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I'm trying to make a few containers that are started by a docker-compose to work with a remote AWS database (managed by Heroku). I configured the envs as shown bellow:



          environment:
      - PG_HOST=xxx.compute-1.amazonaws.com
      - PG_USER=xxx
      - PG_PASS=xxx
      - PG_DBNAME=xxx
      - PG_PORT=5432


      My problem is that the app recognizes the envs and returns a 'success' message as: Ready hosting xxx.compute-1.amazonaws.com to port 5432 !
      but follows with a driver fail to pq: no pg_hba.conf entry for host "<gateway>", user "xxx", database "xxx", SSL off



      I've tried copying a custom pg_hba.conf as follows to the container's volume /var/lib/postgresql/data:



      local   all             all             all                     trust
      host all all all trust


      Also tried specifying the container's network_mode as network_mode: host, but it fails the same way.










      share|improve this question







      New contributor




      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm trying to make a few containers that are started by a docker-compose to work with a remote AWS database (managed by Heroku). I configured the envs as shown bellow:



          environment:
      - PG_HOST=xxx.compute-1.amazonaws.com
      - PG_USER=xxx
      - PG_PASS=xxx
      - PG_DBNAME=xxx
      - PG_PORT=5432


      My problem is that the app recognizes the envs and returns a 'success' message as: Ready hosting xxx.compute-1.amazonaws.com to port 5432 !
      but follows with a driver fail to pq: no pg_hba.conf entry for host "<gateway>", user "xxx", database "xxx", SSL off



      I've tried copying a custom pg_hba.conf as follows to the container's volume /var/lib/postgresql/data:



      local   all             all             all                     trust
      host all all all trust


      Also tried specifying the container's network_mode as network_mode: host, but it fails the same way.







      docker postgresql heroku amazon-rds






      share|improve this question







      New contributor




      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      Arthur SilvaArthur Silva

      11




      11




      New contributor




      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Arthur Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Arthur Silva is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421996%2fdocker-compose-no-pg-hba-conf-entry-for-host%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Arthur Silva is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Arthur Silva is a new contributor. Be nice, and check out our Code of Conduct.













          Arthur Silva is a new contributor. Be nice, and check out our Code of Conduct.












          Arthur Silva is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421996%2fdocker-compose-no-pg-hba-conf-entry-for-host%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...