Connecting Docker edgedb to external postgres.June 12, 2020 at 7:28pm
I couldnt find the docker image anywhere. Is it somewhere available so one could change it to actually connect to an external postgresdb and not use an internal server instance. I don't want to install it on my mac, but would like to use postgres.app.
June 12, 2020 at 8:19pm
The Dockerfile is here: https://github.com/edgedb/edgedb-docker and you can already use it with an external instance like this:
docker run -e EDGEDB_DATADIR= -it --rm edgedb/edgedb --postgres-dsn=postgres://172.17.0.1/mydb
That said, we don't recommend running EdgeDB locally like this. Using external Postgres on a dev instance doesn't buy you much and the chance of things not working correctly is higher.
Is there any particular reason why you want an external Postgres instance?
June 25, 2020 at 6:20pm
Thank you for the insight. I should have found the dockerfile on github myself 😁. I guess I just like the idea of having the database as a separte instance i can connect to with other tools. This way I can better understand whats going on. I guess once edgedb will be production ready, people will probably connect to external datasource (RDS etc) more often then run a pure edgedb server.