Back

How to change appwrite install volume

  • 0
  • Self Hosted
BloodThermic
25 Jun, 2023, 01:47

I am trying to install appwrite locally for dev and I want to store all the files on an external drive so I can move from computer to computer and dev. Is there a way to change the cmd you run to make it change to a diffrent install location?

TL;DR
To change the install location of Appwrite, you can bind all the volumes into a local folder. This can be done by modifying the Docker command when running the installation. Here's an example of how to do it on Windows: ```docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --mount type=bind,source=/Volumes/Work/appwrite,target=/usr/src/code/appwrite \ --entrypoint="install" \ appwrite/appwrite:1.3.7``` By replacing `/Volumes/Work/appwrite` with the desired path on your external drive
Binyamin
25 Jun, 2023, 01:49

You will need to bind all the volumes into a local folder. Then you can just move the folder

Binyamin
25 Jun, 2023, 01:50

Check this message https://discord.com/channels/564160730845151244/1113305575019774013/1113310556540112907 For the right wat to bind docker-compose volume to a folder

BloodThermic
25 Jun, 2023, 02:11
TypeScript
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --mount type=bind,source=/Volumes/Work/appwrite,target=/usr/src/code/appwrite \
    --entrypoint="install" \
    appwrite/appwrite:1.3.7```
BloodThermic
25 Jun, 2023, 02:11

I ran that and it worked but where did the .env go?

Binyamin
25 Jun, 2023, 02:13

This is automatic way, you'll need to go the manual way.

The .env file if exist is an hidden file in unix, so run

TypeScript
ls -lah

In the Appwrite filder to see if it is there

BloodThermic
25 Jun, 2023, 02:14

ahh it is hidden!

BloodThermic
25 Jun, 2023, 02:14

I see it now!

BloodThermic
25 Jun, 2023, 02:14

So I got it working on unix I just need to do it on windows and not overwrite the drive

Binyamin
25 Jun, 2023, 02:15

If you using the same file system, Then yes

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