https://germ.gitbook.io/ws4sqlite/
5.9K
ws4sqlite is a server-side application that, applied to one or more SQLite files, gives the possibility to perform SQL queries and statements on them via REST (or better, JSON over HTTP).
Possible use cases are the ones where remote access to a SQLite db is useful/needed, for example a data layer for a remote application, possibly serverless or even called directly from a web page (after security considerations of course).
Please read the full docs, a tutorial is also provided.
The image is based on distroless/static-debian11. It's a multiarch image for amd64, ARM/v7 and ARM64/v8.
Here are the relevant configurations:
| Exposed port | 12321 | Fixed; remap it with -p |
| Config dir | /data | Fixed; remap it with -v |
| User to run as | --user <user_id>[:<group_id>] | Docker standard switch; do use it |
| Timezone | -e TZ=xxx/yyy | Docker standard env var |
docker run -d \
--restart=unless-stopped \
--name=ws4sqlite \
-p 8080:12321 \
-v /mnt/DockerHome/myDir:/data \
--user 1000:1001 \
-e TZ=Europe/Rome \
germanorizzo/ws4sqlite:latest \
--db /data/testDb.db
This command will install and run ws4sqlite, configuring it to:
/data in the docker environment (Line 5);The rest of the lines in this example are standard Docker.
--user, otherwise ws4sqlite will start with root privileges! You don't want this, as it creates files; for example, backups may potentially overwrite some file or wreak havoc in unpredictable ways (which are actually very predictable, but only after they happen)./data as they were in /data;/data/....Content type
Image
Digest
sha256:5a4ecb267…
Size
10.6 MB
Last updated
11 months ago
docker pull germanorizzo/ws4sqlite