Closed thomas-mc-work closed 3 years ago
TypeORM is the DB Framework for HedgeDoc 2.0, which is not released yet. HedgeDoc 1.0 (which runs in your Docker Container) uses sequelize.
If I recall correctly there was a problem with the connecting via Unix socket to the DB. The fix for which will be released with 1.8, am I right @SISheogorath ?
I don't think we should support Unix sockets with this container. It's against container best practices and people who have such a custom use-case can easily extend this image to accommodate for potential shortcomings.
Now when I think about it I don't even believe this is a container problem at all. Maybe I should close this here and wait for the next major release. If it doesn't work either then I can create an issue in the main repo.
According to this https://github.com/typeorm/typeorm/pull/6042 from your underlying library I was trying to connect to my PostgreSQL DB via a unix socket. Here is an excerpt of my
docker-compose.yml
:But it doesn't work. This is the error message: