This message was deleted.
# community-help
s
This message was deleted.
d
currently I use a second docker compose service called
typesense-config
where the POST to create the schema and load initial data is made. This feels very inefficient, though.
to achieve that I had to write a healthcheck for the
typesense
service which waits for a 200 response from the
health
endpoint. this could be avoided if I could pass collection and document data during the initial configuration
another annoyance with the way I've done it is that i need a custom Dockerfile which installs curl in order to allow the container to run the healthcheck. would love to get alternative solutions for this
j
You could snapshot the data and then start the Typesense with that snapshot data dir
d
I assume there is no CLI for creating collections, only the api, correct?
j
Someone from the community created this cli a while ago, but even that just calls the HTTP API