Back

How to modify the .env file when installed via docker run

  • 0
  • General
Apps4Life
26 Aug, 2023, 01:56

We are self-hosting and installed appwrite via:

TypeScript
docker run -it --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="install" \
    appwrite/appwrite:1.3.8

...how do we modify the environment variables? I'm not sure where the .env file was created?

TL;DR
The user wants to know how to modify the environment variables in the .env file when using the 'docker run' command to install Appwrite. They are unsure of the location of the .env file. Solution: The .env file is usually created in the 'appwrite' folder, alongside the docker-compose.yml file. Therefore, navigate to the folder where you ran the installation command and look for the 'appwrite' folder. The .env file should be inside that folder. Modify the environment variables in that file to make the necessary changes.
Drake
26 Aug, 2023, 02:49

It was created where you ran the install last time

Drake
26 Aug, 2023, 02:49

There should be an appwrite folder with a docker-compose.yml file and .env file inside

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