Open joshuarobs opened 4 years ago
create two independent networks with docker-compose and you could actually run it all in the same file
@StephaneP Do you have any tips on how to do that? Also I can't run them from the same file since each database is its own repo and they different from each other and I need them running at the same time
I have the same requirement of running multiple Hasura instances locally in Docker at the same time.
Anyone?
+1
+1. Anyone successful ? Please help
I'll share a docker-compose example.
Yeah even I have the same requirement .
I'll share a docker-compose example.
reminder! haha
Take a look at this https://stackoverflow.com/questions/63519514/how-are-multiple-instances-of-hasura-graphql-engine-and-postgres-run-locally-via
Here is an Example: https://github.com/iosamuel/graphql-engine/blob/e3454bd00a584c030eae2a2c63905b770408fdeb/install-manifests/docker-compose/docker-compose.yaml
Take a look at this https://stackoverflow.com/questions/63519514/how-are-multiple-instances-of-hasura-graphql-engine-and-postgres-run-locally-via
Here is an Example: https://github.com/iosamuel/graphql-engine/blob/e3454bd00a584c030eae2a2c63905b770408fdeb/install-manifests/docker-compose/docker-compose.yaml
Hey, I forgot to thank you, but this was exactly what I was looking for! Thanks @utkarsh-kumar-1996 💪
I have two repos that I intend to run locally on my machine with Docker. This is on the latest Docker on the latest MacOS Catalina.
Repo 1 The first one works fine, since I just use the standard
docker-compose.yaml
:docker-compose.yaml - 1
I also access the console with
hasura console
.This repo runs normally as it should.
Repo 2 Obviously if I copied the exact same
docker-compose.yaml
from Repo 1, it won't work.I've looked at a few other sources online to help get this work, e.g.:
I currently cannot get it to work whatsoever. Sometimes if I use a postgres port of
5442:5442
it won't work and the server keeps on restarting in Docker Dashboard. Also if I tried to manually point the Hasura server's database url to port5442
, it would complain that:So I changed
5442
in thedocker-compose.yaml
back to 5432.So far this is my current attempt at making it work:
docker-compose.yaml - 2
Neither the graphql nor the postgres server keep on restarting, so that's a good sign. However, if I try to access the console with
hasura console --console-port 9696 --endpoint http://host.docker.internal:8090
I get this error:Has anyone managed to run 2 different hasura projects/repos at the same time on their machine locally? And if so, what
docker-compose.yaml
do you have for the second one?