Back

[SOLVED] Share Appwrite Docker across computers

  • 0
  • General
  • Self Hosted
Tomic R.
27 Jul, 2023, 09:34

I have two computers I work on. One windows pc and one mac. My problem is, that I want to sync my appwrite project between these two computers. I am not using Appwrite Cloud, I am using local hosting. Is there any way to share the docker volumes or something else from docker, so that I don't have to add new collections, attributes or other manually when switching computers again. PS: The last two months I have been working on my mac, so having a way to just copy the project and insert it on my other pc would save me a ton of time.

TL;DR
The user wants to sync their Appwrite project between their Windows PC and Mac. They are looking for a way to share the Docker volumes or find an alternative method to avoid manually adding collections and attributes when switching computers. Solution: The user found a solution by using Docker extensions for Docker Desktop. They created .tar files of the Docker volumes, copied them to the other computer using Logitech flow or GitHub, and imported them using the same Docker extension. This process took around 10 minutes.
Drake
27 Jul, 2023, 18:21

you would need to store the data in some shared file location...or make it so that one system can mount the other...but, honestly, that's messy and not worth it.

Tomic R.
27 Jul, 2023, 19:18

I have actually found a solution. Recently, docker has launched extensions for docker desktop. There is an extension that can create .tar files or similar out of docker volumes (where all the data is stored). I did this with every appwrite volume, copied them over with Logitech flow (alternatively you can use GitHub) and import them on the other docker desktop with the same extension. This only takes like 10 minutes. Worth it.

Drake
27 Jul, 2023, 19:21

This scenario is more like migrating data between instances. for that, i recommend creating a backup from one instance and restoring to the other: https://www.youtube.com/watch?v=lM5yZEPtlvg

The problem with doing this volume route is there is a small chance of corrupting your database data

Tomic R.
27 Jul, 2023, 19:22

Luckily it was only dev, not prod xD But thank you very much for the link, will do it like this in the future

Drake
27 Jul, 2023, 19:34

[SOLVED] Share Appwrite Docker across computers

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more