Back

[SOLVED] Keep appwrite running 24/7 without laptop (hosting)

  • 0
  • Databases
  • Flutter
LumiPlex
7 May, 2023, 17:13

Hey I had a question, normally I connect to appwrite db from my real device using the ip address of the network and also the db responds only when my laptop is on or docker is hosting appwrite. So, while publishing my app, how can I know the user's ipaddress or keep my latop always open ??

TL;DR
Solution: The user wanted to keep Appwrite running 24/7 without their laptop. The solution is to either host Appwrite on a third-party server that guarantees uptime and reliability or install it on a Raspberry Pi with port forwarding set up on the router. Another option is to use Appwrite Cloud or host it on a service like DigitalOcean. It is important to have Appwrite and its docker container, database, and other needed containers running for it to work. Connecting directly to the database is not necessary, as users can connect to the Appwrite instance.
D5
7 May, 2023, 17:15

You don't need to connect directly to the DB, you just connect to the appwrite instance

D5
7 May, 2023, 17:16

You need to have it running both appwrite, it's docker container, database and other needed containers, so at this moment, if I'm not wrong, there's not any official way to run appwrite without docker

D5
7 May, 2023, 17:17

You don't need to know users IP address, since they're connecting to your appwrite's main instance. This can be hosted on a server or your computer (not recommended) Also don't use an IP directly, instead, use a domain

D5
7 May, 2023, 17:20

I'm a bit confused on what you're trying to achieve

LumiPlex
7 May, 2023, 17:23

well, while I am developing the app everything is ok. But, yk I sometimes try the app while the docker is not running I mean while the laptop isn't running. So, at that time connection with appwrite fails. I just want to solve that

LumiPlex
7 May, 2023, 17:24

My mistake, it should have been appwrite what I can't connnect withut docker not db directly

D5
7 May, 2023, 17:31

Appwrite is running and hosted in your computer, and the database with it's data is saved and served from you computer, so obviously if it's off, it will not work

LumiPlex
7 May, 2023, 17:32

yes, and I just don't want that to happen. so, if I make an app and publish it in playstore, will I have to keep my laptop open 24/7 ?

D5
7 May, 2023, 17:36

Yes

D5
7 May, 2023, 17:36

Or you can host appwrite in a server, like digitalocean

D5
7 May, 2023, 17:36

Or use appwrite cloud: https://cloud.appwrite.io

D5
7 May, 2023, 17:36

Note: appwite cloud is currently in beta

LumiPlex
7 May, 2023, 18:01

oh, tnx for the help 😊

D5
7 May, 2023, 18:17

[SOLVED] Keep appwrite running 24/7 without laptop (hosting)

Al
8 May, 2023, 09:23

What I did is installed appwrite on my Raspberry Pi 4, I also set up port forwarding on my router so that I can access it from outside my home network. Perfect set up for testing. Buy small SSD (via SATA to USB) if you can also, will improve disk speed by a lot.

D5
8 May, 2023, 21:00

Yes, also some Synology NAS have support for docker, so it can be installed there. However, I think it's always better using a server from a third party that can guarantee an uptime and reliability, unless if you have a redundant one, with a redundant network and power. Also for vertical scaling, most times, it's easier if hosted in a third party cloud/VPS server

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