Skip to content

Commit 0e5f902

Browse files
committed
docker being able to mount the db dir and share *-wal and -*shm with other processes
1 parent fd77aa8 commit 0e5f902

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN cd /src/; yarn install --pure-lockfile
88

99
EXPOSE 2048
1010

11-
ENTRYPOINT ["node", "/src/main.js", "--db", "/data/db.sqlite", "--port", "2048"]
11+
ENTRYPOINT ["node", "/src/main.js", "--port", "2048"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ $ fg
110110
[https://hub.docker.com/r/assafmo/sqliteproxy](https://hub.docker.com/r/assafmo/sqliteproxy/)
111111

112112
```
113-
docker run -d -p 2048:2048 -v /path/to/my/db.sqlite:/data/db.sqlite assafmo/sqliteproxy
113+
docker run -d -p 2048:2048 -v /path/to/my/db/dir/:/data/ assafmo/sqliteproxy --db /data/my.db
114114
```
115115

116116
```
117-
docker run -d -p 2048:2048 -v /path/to/my/db.sqlite:/data/db.sqlite assafmo/sqliteproxy --readonly
117+
docker run -d -p 2048:2048 -v /path/to/my/db/dir/:/data/ assafmo/sqliteproxy --readonly --db /data/my.db
118118
```
119119

120120
# License

0 commit comments

Comments
 (0)