Closed jjdonov closed 2 years ago
Hi @jjdonov ,
The readme seems to be a little bit outdated, sorry about that. The issue is the localhost
part in your connection string. Docker is not running in your host network so localhost
for your docker container is not the same as localhost
for your host machine where postgres is available.
If you are not on Mac you can add this flag and it should work: --network host
. This is the reason why it wont work on Mac.
If you are a Mac you can use the docker bridge ip instead of localhost, which is 172.17.0.1
🤦 thanks @fmeringdal that makes sense. Would you be open to a PR to get the README fixed up?
@jjdonov Absolutely! :)
Sorry for the slow response here, your reply got buried in my inbox. I see 2a4c88d4c054fd6d0e9e790ee3d04d86473e178f removed the docker instructions from the readme. I'm taking that to mean cargo
is the preferred way of running this, and will close this issue 👍
Hi there, found this repo through an old HN thread and am very excited by it as it seems to have a lot of great features. Great work!
The instructions for
cargo run
works perfectly 👌 but unfortunately, I am hitting some issues when using thenettu-scheduler:latest
image.I've enabled
RUST_BACKTRACE=full
incase it is helpful in debugging.docker run -p 5000:5000 -e RUST_BACKTRACE=full -e ACCOUNT_API_KEY="JOHN" -e DATABASE_URL="postgresql://postgres:postgres@localhost:5432/nettuscheduler" fmeringdal/nettu-scheduler:latest
Is this a known issue? (And apologies in advance in case this is user error 😉 )