Issues with Portainer on Synology, Can't reach database server #13970
-
|
When launching the stack through Portainer I get the following errors, and postgres looks to be connecting on the right port. affine_migration_job affine_server affine_postgres My compose is copied from repo the only difference being the following for Portainer. I have set the Environment variables and inspecting the containers they are being used. Any suggestions of what to try is very much appreciated. I had v0.23.0 running through Container Manager, but started porting everything to Portainer and ran into this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I ran into the same thing myself. The initialization script for the database seems to not work even if you change the references from .env to stack.env in the composer yml. I don't know if this will help you for a NAS, but I got around it by installing docker composer and using the 'docker composer up -d' method rather than using portainer. Everything worked fine as long as the environment file name stayed .env and portainer still picks up the containers. |
Beta Was this translation helpful? Give feedback.
-
|
I just figured it out and got it working on Portainer. I am not sure why I had to do this now but must be forcing the host so that the connection strings works. |
Beta Was this translation helpful? Give feedback.
I just figured it out and got it working on Portainer.
I needed to add
POSTGRES_HOST: postgresto the postgres environment variables.