TheAxelander / OpenBudgeteer

OpenBudgeteer is a budgeting app based on the Bucket Budgeting Principle
https://theaxelander.github.io
MIT License
788 stars 43 forks source link

sqlite database is not created under "/app/database" #63

Closed N1c093 closed 2 years ago

N1c093 commented 2 years ago

Merry Christmas :)

I just installed your docker container, with sqlite database. I also added the required parameter -e 'Connection:Provider'='sqlite' and -v '/my/local/path:/app/database' Sadly the database isn't created under /app/database And the folder is completely empty:

image

It seems like, that the database files are located directly under /app

image

Thank you Nico

TheAxelander commented 2 years ago

Hi Nico,

you are right. I have changed the path some time ago and looks like I missed to update the documentation accordingly. So the mapping should be -v '/my/local/path:/app'

If I look on this now and think about it, I would say it's better to have this again under /app/database to separate app files and db files in the volume mapping.

I will work on that...

curana commented 1 year ago

I have a similar problem, but it won't create the SQLite database at all (whatever path I use). In the log it just says "Waiting for database".

Can I trigger the creation somehow?

Basically I did this:

docker run -d --name='openbudgeteer' \
    -e 'Connection:Provider'='sqlite' \
    -v '/my/local/path:/app/database'  \
    -p '6100:80/tcp' \
    'axelander/openbudgeteer:latest'
TheAxelander commented 1 year ago

Connection:Provider is no longer a valid setting and has been changed some time ago. Please use -e 'CONNECTION_PROVIDER'='sqlite', more details you can find in the README