Skip to content
Back

Guide to Bringing Appwrite to Production

  • 0
  • Self Hosted
  • Tools
  • Web
ZachHandley
20 May, 2023, 22:30

copy thank you

TL;DR
Summary: The discussion revolves around bringing Appwrite to production and the possibility of a migration tool. There is mention of a pull request addressing some issues, as well as the need for resources on managing self-hosted instances. One user shares a Notion page with their guide for setting up Appwrite on a subdomain. Another user is experiencing issues with the backup and restore process. The recommended way of setting up Appwrite on a subdomain is discussed, but no specific solution is provided in the thread.
ZachHandley
20 May, 2023, 23:07

What's the recommended way of setting up appwrite on a subdomain? I have my appwrite server setup, and I have it working, but only at my servers IP address, and I can't figure out using Cloudflare + Nginx how to reverse proxy it

ZachHandley
21 May, 2023, 00:21

@D5 I used the lazy way of backup and restore, removed my Appwrite docker instance on my server temporarily to restore it, and there was no docker-compose.yaml or .env files created, so docker compose up -d doesn't work. It created a directory called docker-compose.yml but I also don't know how to fix it

Petteri
21 May, 2023, 05:52

Hosting offered by Digitalocean marketplace offers only node-16.0 version. I started to use docker-compose.yaml file and planning to host on my own because of that. Needed node-18.0 version and did not know how to change that. Expanding collection of runtimes is not well documented.

D5
21 May, 2023, 08:03

Add and configure it as if it was a domain, no needed to setup any reverse proxy or anything else

D5
21 May, 2023, 08:04

I'm not sure how does it works, other users managed to make it that way

D5
21 May, 2023, 08:07

In the one installed by digitalocean marketplace, If I'm not wrong, you can setup node 18 by changing as others, the corresponding variable located at docker-compose.yml file

safwan
21 May, 2023, 08:25

i have a doman registered as example.com pointed to the public IP of my VPS.

I created a subdomain called appwrite.example.com and added an A record pointing to the public IP of the VPS as well.

On my server, I've got NGINX setup with server blocks for each subdomain. requests to appwrite.example.com get reverse proxied to the port that's running appwrite (80 for http and 443 for https by default)

safwan
21 May, 2023, 08:25

if you need any help, feel free to tag me and ask away

ZachHandley
22 May, 2023, 23:24

I've started to put together my own guide for this on my Notion one second

joeyouss
1 Jun, 2023, 19:59

Oh that looks cool @ZachHandley

VincentGe
1 Jun, 2023, 20:06

👀 This is an interesting discussion. We can put some of this information into the docs, for sure.

Self-hosting and scaling to production is a very high-level effort, those who do it usually have a lot of opinions on how their infrastructure should be managed.

I really love they you posted a Notion page, maybe even bring this to Dev.to.

I think these resources are a missing part of the ecosystem, where people discuss how they're managing their self-hosted instances. Everyone on the team that hosts Appwrite for production does it slightly differently, and resources like this would make it easier for everyone else down the road.

Thanks for your contribution ❤️

VincentGe
1 Jun, 2023, 20:16

In fact we've had this PR sitting stale for a while now... Which addresses many of the isseus here. Let me push for this to be merged 😬 https://github.com/appwrite/docs/pull/279

ZachHandley
1 Jun, 2023, 22:18

Amazing I’ll update my notion more too!

D5
1 Jun, 2023, 22:45

Reviewed and added few comments

ZachHandley
1 Jun, 2023, 22:50

I’ll update it with my notion notes after as well, is there any chance to get an official AppWrite way to transfer DB’s? Like maybe a websocket between the self hosted instance and the web instance or I’m not sure

ZachHandley
1 Jun, 2023, 22:50

Could I in theory open my IP address to the world and then use an API key from my server and create a function to list everything and bring it in?

D5
1 Jun, 2023, 22:51

Currently there's not any official way, but they commented that the team is working on building a migration tool

ZachHandley
1 Jun, 2023, 22:52

Gotcha. I think a connection could be useful tbh

VincentGe
1 Jun, 2023, 23:03

🤔 This is something we've thought about a lot <:KEKW:736600409228967937>

VincentGe
1 Jun, 2023, 23:03

I have heard rumors

VincentGe
1 Jun, 2023, 23:03

this might come true

D5
2 Jun, 2023, 08:05

Eldad confiremed that there was going to be a tool to transfer/migrate between appwrite instances and cloud

D5
2 Jun, 2023, 08:05

Meanwhile, @ZachHandley give this issue a 👍 https://github.com/appwrite/appwrite/issues/390

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