Where does Cattaz store persistent data? [Docker]
Hello, in the Docker container, where does Cattaz store any created documents? Is there a single file path I can just create a volume bind mount to in order to persist the data between container recreation?
Also, is there an environment variable to allow me to change the websocket port used by the app? In the docker-compose.yml file I can easily change the websocket listener like so:
ports:
- "17011:1234"
- "80:8080"
However the Cattaz web application seems hardcoded to check port 1234 for the websocket. :)
Hi kawaii,
where does Cattaz store any created documents?
If you use master branch, Cattaz does not persist documents for now.
If you use leveldb branch (#6), Cattaz stores documents at ./y-leveldb-databases/.
is there an environment variable to allow me to change the websocket port used by the app?
Currently not. It is a good idea to make ports configurable. Would you like to make a PR or shall I do it for you?
Currently not. It is a good idea to make ports configurable. Would you like to make a PR or shall I do it for you?
Hmm, I assume that it is simply a matter of changing src/Main.jsx#10 and src/AppEnabledWikiEditorCodeMirror.jsx#L81 to use an environment variable such as process.env.PORT, but I'm not a JavaScript expert, so maybe it is best if you do it. :slightly_smiling_face:
Port numbers are now configurable. You can find documentation at http://cattaz.io/build/#/doc/usage. Could you try it?
@ohtake thank you! I have tested it and the fuctionality works as intended. :slightly_smiling_face: