How to restart the edgedb server from a shell script running in the edgedb Docker container? #6650
Unanswered
elliotwaite
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Remote instances, a.k.a ones that you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I'm running the edgedb Docker container, how do I restart the server from a shell script running inside the container?
I tried the following, but ran into the error shown below:
$ edgedb instance link --dsn='edgedb://edgedb:password@localhost:5656?tls_security=insecure' localhost-edgedb
$ edgedb instance restart -I localhost-edgedb
Am I doing something wrong?
For context, I'm trying to write a shell script that will restart the server whenever the TLS files change (the files pointed to by
EDGEDB_SERVER_TLS_CERT_FILE
andEDGEDB_SERVER_TLS_KEY_FILE
), and they are changed externally by a separate certbot container that has a shared volume with the edgedb container. Is there a more correct way to accomplish what I'm trying to do?UPDATE:
I just realized that the EdgeDB server already handles watching for TLS file changes, and automatically loads in the new certificates when they do. So the original context of my question no longer applies, but I'm still curious how I would restart the local server if needed.
Beta Was this translation helpful? Give feedback.
All reactions