r/BookStack • u/Wittinator • Jul 19 '26
Migrating Bookstack hosted in Docker to new host
Hi there,
I am very much inexperienced in the world of Docker and bookstack (somebody else set this up for me awhile back). I am hoping to get some guidance on achieving the following:
- I currently have Bookstack hosted on an AWS EC2 instance, running Docker. I have three containers, one for the MariaDB, bookstack, and nginx.
- I am simply looking to move my instance of Bookstack off AWS, and host it on a home server instead.
What I've done so far:
- docker commit + docker save to grab a .tar for each of my containers. Downloaded these.
- Exported the volume mount locations that has all of my data (following this guide: https://www.youtube.com/watch?v=QskmB4fb-uo)
- Imported the images on the new host via docker load -i <image>
- Attempted to run the containers.
This is about as far as I get. Currently the main error I am seeing is: "nc: getaddrinfo for host port 3306: Name does not resolve" this is for bookstack_db.
I am quite sure I'm either doing this wrong, or missing many steps in between. If anyone can provide more step-by-step guiderails on this process, that would be appreciated.
Regards
2
u/bsncubed Jul 19 '26
Are you using docker compose?
1
u/ssddanbrown Jul 19 '26
Are you also using docker compose on the existing AWS environment? If so, what does that config look like? If not, do you have any details on that setup.
It'd be better to get just the container data, and know which container images are in use, and then migrate to get things on latest versions of that standard image, rather than migrate the existing images/containers, so that you get on a known state with a clear future update path.