Cat Swolo
04/01/2022, 8:56 AM01 Apr 2022 07:20:52:829 +0000 | DEBUG | pid: ab12b59e-98a4-4068-9cc7-cdbdf3f76117 | [main] thread | io.supertokens.storage.postgresql.HikariLoggingAppender.doAppend(HikariLoggingAppender.java:136) | SuperTokens - Starting...
01 Apr 2022 07:20:52:832 +0000 | DEBUG | pid: ab12b59e-98a4-4068-9cc7-cdbdf3f76117 | [main] thread | io.supertokens.storage.postgresql.HikariLoggingAppender.doAppend(HikariLoggingAppender.java:136) | SuperTokens - Failed to create/setup connection: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
01 Apr 2022 07:20:52:833 +0000 | DEBUG | pid: ab12b59e-98a4-4068-9cc7-cdbdf3f76117 | [main] thread | io.supertokens.storage.postgresql.HikariLoggingAppender.doAppend(HikariLoggingAppender.java:136) | SuperTokens - Cannot acquire connection from data source
01 Apr 2022 07:20:52:834 +0000 | ERROR | pid: ab12b59e-98a4-4068-9cc7-cdbdf3f76117 | [main] thread | io.supertokens.storage.postgresql.HikariLoggingAppender.doAppend(HikariLoggingAppender.java:132) | SuperTokens - Exception during pool initialization.
Trying again in a few seconds for 59.0 mins...
01 Apr 2022 07:20:52:836 +0000 | INFO | pid: ab12b59e-98a4-4068-9cc7-cdbdf3f76117 | [main] thread | io.supertokens.storage.postgresql.ConnectionPool.initPool(ConnectionPool.java:155) | Trying again in a few seconds for 59.0 mins...
version: '3.1'
services:
supertoken-users:
image: registry.supertokens.io/supertokens/supertokens-postgresql
ports:
- '3567:3567'
environment:
- POSTGRESQL_USER=root
- POSTGRESQL_PASSWORD=example
- POSTGRESQL_HOST=host
- POSTGRESQL_PORT=5432
- POSTGRESQL_DATABASE_NAME=authdb
db:
image: postgres
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: example
POSTGRES_DB: authdb
adminer:
image: adminer
restart: always
ports:
- 8080:8080
rp
04/01/2022, 8:58 AMPOSTGRESQL_HOST
should be db
? Cause the name of the db in the compose file is db
Cat Swolo
04/01/2022, 9:06 AMurl
but a docker container
itself?rp
04/01/2022, 9:07 AMCat Swolo
04/01/2022, 9:07 AMrp
04/01/2022, 9:07 AMCat Swolo
04/01/2022, 9:08 AMrp
04/01/2022, 9:08 AMdb
Cat Swolo
04/01/2022, 9:09 AMrp
04/01/2022, 9:10 AMCat Swolo
04/01/2022, 9:53 AMrp
04/01/2022, 10:37 AM