-
Hi, what is the best way to auto define schema using Docker Compose? Here'is a part of my compose file where the surreal service is running:
I'd like to create a namespace, a database, and necessary tables (if they don't exist of course), but I don't know how I can do that. I have an example of init.surql file that describes what I need to define on start of the service:
|
Beta Was this translation helpful? Give feedback.
Answered by
Skada13
Jul 10, 2025
Replies: 1 comment
-
Well, I found the answer in SurrealDB Discord community: I need to pass the init.surql via command --import-file with start command. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Skada13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, I found the answer in SurrealDB Discord community: I need to pass the init.surql via command --import-file with start command.