I keep getting the error Postgres is unavailable - sleeping
when I run docker-compose up
here is the full log
Starting asminiapp_db_1 ... done
Starting asminiapp_web_1 ... done
Attaching to asminiapp_db_1, asminiapp_web_1
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2020-03-28 17:35:21.729 UTC [1] LOG: starting PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2020-03-28 17:35:21.729 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2020-03-28 17:35:21.730 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2020-03-28 17:35:21.734 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2020-03-28 17:35:21.753 UTC [24] LOG: database system was interrupted; last known up at 2020-03-28 17:25:18 UTC
db_1 | 2020-03-28 17:35:21.953 UTC [24] LOG: database system was not properly shut down; automatic recovery in progress
db_1 | 2020-03-28 17:35:21.955 UTC [24] LOG: redo starts at 0/1645BC0
db_1 | 2020-03-28 17:35:21.956 UTC [24] LOG: invalid record length at 0/1645BF8: wanted 24, got 0
db_1 | 2020-03-28 17:35:21.956 UTC [24] LOG: redo done at 0/1645BC0
db_1 | 2020-03-28 17:35:21.973 UTC [1] LOG: database system is ready to accept connections
web_1 | Resolving Hex dependencies...
web_1 | Dependency resolution completed:
web_1 | Unchanged:
web_1 | bunt 0.2.0
web_1 | certifi 2.5.1
web_1 | connection 1.0.4
web_1 | cowboy 2.7.0
web_1 | cowlib 2.8.0
web_1 | credo 1.3.2
web_1 | db_connection 2.2.1
web_1 | decimal 1.8.1
web_1 | earmark 1.4.3
web_1 | ecto 3.4.0
web_1 | ecto_sql 3.4.0
web_1 | ex_doc 0.21.3
web_1 | excoveralls 0.12.3
web_1 | gettext 0.17.4
web_1 | hackney 1.15.2
web_1 | idna 6.0.0
web_1 | jason 1.2.0
web_1 | makeup 1.0.1
web_1 | makeup_elixir 0.14.0
web_1 | metrics 1.0.1
web_1 | mime 1.3.1
web_1 | mimerl 1.2.0
web_1 | nimble_parsec 0.5.3
web_1 | parse_trans 3.3.0
web_1 | phoenix 1.4.16
web_1 | phoenix_ecto 4.1.0
web_1 | phoenix_pubsub 1.1.2
web_1 | plug 1.10.0
web_1 | plug_cowboy 2.1.2
web_1 | plug_crypto 1.1.2
web_1 | postgrex 0.15.3
web_1 | ranch 1.7.1
web_1 | ssl_verify_fun 1.1.5
web_1 | telemetry 0.4.1
web_1 | unicode_util_compat 0.4.1
web_1 | All dependencies are up to date
web_1 | \nNo Dialyxer config: Skipping setup...
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping
web_1 | Postgres is unavailable - sleeping