Skip to content

docker-compose up does not connect to postgres #66

@MicDeDuiwel

Description

@MicDeDuiwel

As stated in the documentation I download and move the files for the docker-compose development single instance test.

Using the postgres docker-compose manifest I easily get it up and running, but the containers are stuck in a loop and won't connect to postgres:

[+] Running 3/2
⠿ Container biz-db-1 Created 0.0s
⠿ Container biz-wacore-1 Recreated 0.0s
⠿ Container biz-waweb-1 Recreated 0.1s
Attaching to biz-db-1, biz-wacore-1, biz-waweb-1
biz-db-1 | 2021-10-29 12:07:35.663 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 3306
biz-db-1 | 2021-10-29 12:07:35.663 UTC [1] LOG: listening on IPv6 address "::", port 3306
biz-db-1 | 2021-10-29 12:07:35.667 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.3306"
biz-db-1 | 2021-10-29 12:07:35.692 UTC [25] LOG: database system was shut down at 2021-10-29 09:14:40 UTC
biz-db-1 | 2021-10-29 12:07:35.698 UTC [1] LOG: database system is ready to accept connections
biz-wacore-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-wacore-1 | Database is not up yet - sleeping
biz-waweb-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-waweb-1 | Database is not up yet - sleeping
biz-wacore-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-wacore-1 | Database is not up yet - sleeping

This will just continue and never resolve. I'm also in the process to see what happens when I connect an external postgres db but that also does not seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions