Files
my-vault/04_Archive/Inbox-Clippings/2023/04/Installation - Docs - Appwrite.md
T

7.8 KiB

page-title, url, date
page-title url date
Installation - Docs - Appwrite https://appwrite.io/docs/installation 2023-04-06 23:41:10

  Table of contents

Getting Started

APIs

References

Guides

Advanced

Docs

Installation

Appwrite is a self-hosted backend server, packaged as a set of Docker containers. You can install and run Appwrite on any operating system that can run a Docker CLI. You can use Appwrite on your local machine or a cloud provider of your choice.

System Requirements

Appwrite is designed to run well on both small and large deployments. The minimum requirements to run Appwrite are as little as 1 CPU core and 2GB of RAM, and an operating system that supports Docker.

Appwrite requires Docker Compose Version 2. To install Appwrite, make sure your Docker installation is updated to support Composer V2.

Upgrading From Older Versions

If you are migrating from an older version of Appwrite, you need to follow the migration instructions.

Install with Docker

The easiest way to start running your Appwrite server is by running our Docker installer tool from your terminal. Before running the installation command, make sure you have Docker CLI installed on your host machine.

You will be prompted to configure the following during the setup command:

  1. Your Appwrite instance's HTTP and HTTPs ports.
  2. Your Appwrite instance's secret key which used to encrypt sensitive data.
  3. Your Appwrite instance's main hostname. Appwrite will generate a certificate using this hostname.
  4. Your Appwrite instance's DNS A record hostname. Typically set to the same value as your Appwrite instance's hostname.

Unix

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

Click Here to Copy

Windows

Hyper-V and Containers Windows features must be enabled to run Appwrite on Windows with Docker. If you don't have these features available, you can install Docker Desktop which uses Virtualbox to run Appwrite on a Virtual Machine.

  • CMD

  • PowerShell

  • CMD

    docker run -it --rm ^
        --volume //var/run/docker.sock:/var/run/docker.sock ^
        --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
        --entrypoint="install" ^
        appwrite/appwrite:1.2.1
    

    Click Here to Copy

  • PowerShell

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

    Click Here to Copy

One-Click Setups

In addition to running Appwrite locally, you can also launch Appwrite using a pre-configured setup. This allows you to get up and running with Appwrite quickly without installing Docker on your local machine.

Choose from one of the providers below:

Provider

Logo Logo

DigitalOcean

Click to Install

Logo Logo

Gitpod

Click to Install

Manual (using docker-compose.yml)

For advanced Docker users, the manual installation might seem more familiar. To set up Appwrite manually, download the Appwrite base docker-compose.yml and .env files, then move them inside a directory named appwrite. After the download completes, update the different environment variables as you wish in the .env file and start the Appwrite stack using the following Docker command:

docker compose up -d --remove-orphans

Click Here to Copy

Once the Docker installation completes, go to your machine's hostname or IP address on your browser to access the Appwrite console. Please note that on hosts that are not Linux-native, the server might take a few minutes to start after installation completes.

Stop

You can stop your Appwrite containers by using the following command executed from the same directory as your docker-compose.yml file.

docker compose stop

Click Here to Copy

Uninstall

To stop and remove your Appwrite containers, you can use the following command executed from the same directory as your docker-compose.yml file.

docker compose down -v

Click Here to Copy

Learn More