microbin
microbin copied to clipboard
JSON DB in Docker image does not appear to work properly
The docker image runs on SQLite beautifully, but when enabling JSON DB in Docker (MICROBIN_JSON_DB: "true"), the docker image fails to start, returning the following errors in the docker log:
2023-09-10T18:37:34 [ERROR] - Failed to create database file pasta_data/database.json: No such file or directory (os error 2)!
thread 'main' panicked at 'Failed to create database file pasta_data/database.json: No such file or directory (os error 2)!', src/util/db_json.rs:38:21
stack backtrace:
0: 0x55a0fcafe1ae -
I have tried to create the "pasta_data" directory manually in the mapped docker folder, but that does not appear to work.
Love the application. Keep up the good work!
I fixed it with that config option:
volumes:
- ./microbin/data:/app/microbin_data
- ./microbin/pasta:/app/pasta_data
But yeah, @szabodanika move it to microbin_data to avoid confusion