Back

Self-hosting installation location

  • 0
  • General
jaboyc
2 Oct, 2023, 20:25

Hello! Before the Appwrite rebrand, I was able to access the .env and docker-compose.yml file for self-hosting at https://appwrite.io/install/compose and https://appwrite.io/install/env, but they now return 404. Where can I find these base files that are described in the installation docs? https://appwrite.io/docs/advanced/self-hosting/#:~:text=download%20the%20Appwrite,files

TL;DR
The user performed a self-hosted installation of Appwrite using a bash command. The installation created a directory called 'appwrite', which contains the necessary files. The user also mentioned not running the installation as root in a production environment. The solution provided is to set a normal user with Docker permissions using the command 'sudo usermod -aG docker ${USER}'. The user also mentioned the issue of not being able to access the .env and docker-compose.yml files for self-hosting on the Appwrite website, as the links return a 404 error. The user requested information on where to find these files.
Mylo
2 Oct, 2023, 20:48
jaboyc
2 Oct, 2023, 20:53

That's helpful for figuring out what the environment variables do, but I don't know what the initial docker-compose.yml or .env file should look like 😦

Drake
2 Oct, 2023, 21:01

we still need to get those new links/files on the website...for now, it's best to do the automatic install

jaboyc
2 Oct, 2023, 21:03

Sounds good. Will there be some announcement or way to be notified when the links are updated?

Drake
2 Oct, 2023, 21:05
Mylo
9 Oct, 2023, 16:43

on my install (self hosted) where i did not use a one-click setup, e.g. i used the bash command

TypeScript
https://appwrite.io/docs/advanced/self-hosting

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.4.4

and it creates the $(pwd)/appwrite directory if not existing.

in this directory are the files you are probably looking for.

TypeScript
root@appwrite144:~# ls -la appwrite/
total 36
drwxr-xr-x 2 root root  4096 Oct  2 20:37 .
drwx------ 6 root root  4096 Oct  2 20:37 ..
-rw-r--r-- 1 root root 22710 Oct  2 19:17 docker-compose.yml
-rw-r--r-- 1 root root  3470 Oct  2 20:31 .env

ps: don't run as root in prod. set your normal user with docker permissions. sudo usermod -aG docker ${USER} which i have not done on the above snippets from a devbox.

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