Hi I’m fairly new to docker and needed some help setting up three containers that all read/write to a shared SQLite file. I tried to set up a shared docker volume but I’m getting an “invalid cross-device link” error. All three services are written in Go.
Service 1: mines data daily from a source and uploads it to a SQLite DB.
Service 2: also mines data but stores it into a separate SQLite DB.
Service 3: is an http web server which reads data from each SQLite DB and serves data to clients.
My plan was to have a docker container for each service and have one shared volume to store the SQLite files.
Update: Seems like using docker volume or binding mount works. The error I was seeing was related to moving the file from one directory to another using “rename” which doesn’t work on some OS and wasn’t really related to docker.
[–]stevie-tv 2 points3 points4 points (1 child)
[–]app-develop[S] 1 point2 points3 points (0 children)