-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to run AB on localhost but store data on NAS? #894
Comments
Symlink works but you have to mount the destination of the symlink in docker-compose as a volume as well (to the same location the symlink is pointing to, except inside the container). |
I'm sorry, I don't understand this. Can you give me an example? Since I've tried many different variations, for example:
But this doesn't work as the folders are created in host What am I missing?
|
@iwconfig I was able to share my archive directory on my Synology NAS. version: '2.4'
services:
archivebox:
image: ${DOCKER_IMAGE:-archivebox/archivebox:master}
command: server --quick-init 0.0.0.0:8000
restart: unless-stopped
environment:
- ALLOWED_HOSTS=*
- MEDIA_MAX_SIZE=750m
volumes:
- ./volumes/data:/data
- archivebox-archive:/data/archive
volumes:
archivebox-archive:
driver: local
driver_opts:
type: "nfs"
o: "nfsvers=4,addr=192.168.1.12,rw"
device: ":/volume1/archivebox/archive" Difference is that I used docker to create the mount instead of fstab. Hope that also works on your side. |
Thank you so much! I got it working now 😃 I just had one issue with permissions inside the docker container, so I had to do
Awesome! Again, thank you! @pirate Maybe this should be mentioned in the documentation? If it already is, I'm sorry, I haven't seen it. |
Note I've added a new DB/filesystem troubleshooting area to the wiki that may help people arriving here from Google: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#database-troubleshooting Contributions/suggestions welcome there. |
Hello!
I'm using docker-compose. Following the title if this issue: I first tried changing the whole data dir to a mounted path pointing to my NAS, but I got this error:
I cannot figure out how to separate
data/archive/
from the rest as I wish to store this on my NAS. I tried symlinking it but it just complains thatdata/archive/
already exists.I would prefer to have as much data on my NAS so all or any of
data/{logs,sonic,sources}/
as well.How do I setup this with docker-compose?
Thank you kindly! in advance.
The text was updated successfully, but these errors were encountered: