How to use SQLite with chirpstack-sqlite docker image?

Viewed 28

Hello,

I'm trying to run chirpstack-sqlite (v4) in docker compose and I can't seem to get it create or use a SQLite DB file.

If I mount a named docker volume or local empty folder I get Error: Error occurred while creating a new object: Unable to open the database file.

If I create an empty file using touch (in either a local folder or named docker volume) I get Error: attempt to write a readonly database even though the local permissions on the file are rw-rw-rw and if I add :rw to the volume line in docker-compose.yml.

If I run the docker container in privileged mode, the result is the same.

If I run the chirpstack-sqlite binary natively, it creates the sqlite db just fine.

Ideally I would like to be able to use a named docker volume but I can't find any documentation on how to do this.

Can anyone help me out please?

0 Answers