Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prest docker connects to instead of envrionment var #351

darox opened this issue Apr 18, 2019 · 0 comments


1 participant
Copy link

commented Apr 18, 2019

  • pREST version (or commit ref): Latest docker image
  • pREST endpoint: -
  • PostgreSQL version: latest postgres docker image
  • Operating system: Ubuntu 18.04
  • Go version: -
  • Log gist: -

I have deployed prest in docker with the following command:
sudo docker run -d \ -e PREST_HTTP_PORT=8092 \ -e PREST_PG_HOST= \ -e PREST_PG_USER=postgres \ -e PREST_PG_PASS=pass \ --name prod-prest \ --restart=always \ --net prod-network --ip \ prest/prest

But sudo docker logs prod-prest returns:
2019/04/18 14:59:33 [error] dial tcp connect: connection refused
2019/04/18 15:00:34 [msg] Using ./prest.toml config file.
2019/04/18 15:00:34 [error] dial tcp connect: connection refused
2019/04/18 15:01:36 [msg] Using ./prest.toml config file.
2019/04/18 15:01:36 [error] dial tcp connect: connection refused
2019/04/18 15:02:37 [msg] Using ./prest.toml config file.
2019/04/18 15:02:37 [error] dial tcp connect: connection refused

Why does prest try to connect to instead of the specified envrionment variable?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.