hello, is there a way to run prisma using a `docke...
# prisma-whats-new
h
hello, is there a way to run prisma using a
docker-compose.yml
?
In this section you find an example
docker-compose.yml
file.
You will spin up the actual MySQL database and the Prisma service.
The Prisma service container will then be the endpoint for an actual
prisma deploy
from your local machine.
h
hooray, I’ll give that a shot
thanks @andre
a
Awesome πŸŽ‰ You’re very welcome! Let me know if I can assist you during your journey!
h
Booting local development cluster 5.4s β–Έ No cluster set. Please set the β€œcluster” property in your prisma.yml Get in touch if you need help: https://www.graph.cool/forum To get more detailed output, run $ export DEBUG=β€œ*”
I managed to run prisma on my server
added the new cluster in ./prisma/config.yml
and I get the above error while deploying
a
What does
cat database/prisma.yml
gives you?
h
hold on, my
./prisma/config.yml
seems to have been reset
a
oh okay
h
my cluster reference is gone
a
In your settings?
h
aye
I added it again
➜ toucan-storage prisma cluster list name version endpoint ────────── ─────── ─────────────────────────────── local 1.2.4 http://localhost:4466/cluster nasbox http://horiz.go.ro:4466/cluster prisma-eu1 1.2.4 https://eu1.prisma.sh/cluster prisma-us1 1.2.4 https://us1.prisma.sh/cluster
the nasbox one
a
That is definitely not intended. Could you file an issue here: https://github.com/graphcool/prisma/issues/new
h
yeah, I’ll try to reproduce
a
πŸ‘
h
prisma deploy
gives
Copy code
Could not connect to cluster nasbox with host <http://horiz.go.ro:4466>. Did you provide
 β–Έ    the right port?
telnet <http://horiz.go.ro|horiz.go.ro> 4466
Connection closed by foreign host
which tells me the service is accessible but something is wrong with it
a
Could you check the logs of the Prisma service?
h
lots of
Copy code
prisma-database_1  | Listening for transport dt_socket at address: 8000
prisma-database_1  | Exception in thread "main" java.sql.SQLTransientConnectionException: internalRoot - Connection is not available, request timed out after 5001ms.
a
Means, the service is not able to reach the MySQL instance.
h
I did change SQL_CLIENT_PASSWORD in
.env
file
a
What is the configured host name?
h
before running
docker-compose up -d