Mount existing database #413
Answered
by
felddy
JackStromberg
asked this question in
Q&A
-
|
Is there documentation on how to mount an existing database to the docker container? I am able to mount my weewx.conf file perfectly, but not sure the best practice for handling the database. Is the recommendation to create /weewx/database and update the conf file to reference /data as well? I.e. [DatabaseTypes]
# Defaults for SQLite databases
[[SQLite]]
driver = weedb.sqlite
# Directory in which the database files are located
SQLITE_ROOT = /data |
Beta Was this translation helpful? Give feedback.
Answered by
felddy
Feb 16, 2025
Replies: 1 comment 1 reply
-
|
The configuration is correct. The database file > ls -ln data
total 24764
drwxr-xr-x 2 1001 20 4096 Nov 26 11:25 archive/
drwxr-xr-x 8 1001 20 4096 Nov 25 18:02 examples/
drwxr-xr-x 3 1001 20 4096 Nov 26 10:34 lib/
drwxr-xr-x 2 1001 20 4096 Nov 26 11:25 scripts/
drwxr-xr-x 8 1001 20 4096 Nov 26 11:18 skins/
drwxr-xr-x 18 1001 20 4096 Nov 25 18:01 util/
-rw-r--r-- 1 1001 20 24887 Dec 14 21:35 weewx.conf
-rw-r--r-- 1 1001 1001 25300992 Feb 16 13:00 weewx.sdb |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JackStromberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The configuration is correct. The database file
weewx.sdbshould exist in the/datadirectory that is mounted into the container.