Etimo / diamonds2

💎Diamonds v2
http://diamonds.etimo.se/
MIT License
4 stars 3 forks source link

Docker compose production cannot contact database #63

Closed niclaslindstedt closed 4 years ago

niclaslindstedt commented 4 years ago

Production

backend_1   | [2020-02-07T17:12:13.918Z] DEBUG     AppModule dependencies initialized
backend_1   | [2020-02-07T17:12:15.577Z] ERROR     Unable to connect to the database. Retrying (1)...
backend_1   | [2020-02-07T17:12:20.140Z] ERROR     Unable to connect to the database. Retrying (2)...
backend_1   | [2020-02-07T17:12:24.738Z] ERROR     Unable to connect to the database. Retrying (3)...
backend_1   | [2020-02-07T17:12:29.357Z] ERROR     Unable to connect to the database. Retrying (4)...
backend_1   | [2020-02-07T17:12:33.986Z] ERROR     Unable to connect to the database. Retrying (5)...
backend_1   | [2020-02-07T17:12:38.609Z] ERROR     Unable to connect to the database. Retrying (6)...

Development

backend_1   | [2020-02-07T17:17:15.834Z] DEBUG     AppModule dependencies initialized
backend_1   | [2020-02-07T17:17:18.466Z] DEBUG     TypeOrmCoreModule dependencies initialized
backend_1   | [2020-02-07T17:17:18.527Z] DEBUG     Starting application on 5000
backend_1   | [2020-02-07T17:17:18.531Z] DEBUG     BotsController {/api/bots}:
backend_1   | [2020-02-07T17:17:18.533Z] DEBUG     Mapped {/, POST} route
backend_1   | [2020-02-07T17:17:18.534Z] DEBUG     Mapped {/:token, GET} route
backend_1   | [2020-02-07T17:17:18.534Z] DEBUG     BoardsController {/api/boards}:
backend_1   | [2020-02-07T17:17:18.534Z] DEBUG     Mapped {/, GET} route
backend_1   | [2020-02-07T17:17:18.535Z] DEBUG     Mapped {/:id, GET} route
backend_1   | [2020-02-07T17:17:18.535Z] DEBUG     Mapped {/:id/join, POST} route
backend_1   | [2020-02-07T17:17:18.536Z] DEBUG     Mapped {/:id/move, POST} route
backend_1   | [2020-02-07T17:17:18.536Z] DEBUG     HighscoresController {/api/highscores}:
backend_1   | [2020-02-07T17:17:18.536Z] DEBUG     Mapped {/, GET} route
indrif commented 4 years ago

Would also be nice if we could get some debug output from the typeorm module. It seems to do a lot without saying anything. Would be nice to know "is it running migrations or not?", "where is it connecting to?" etc

indrif commented 4 years ago

Working in develop