Back

unable to use appwrite

  • 0
  • Self Hosted
  • Web
  • REST API
vedant
3 Jan, 2024, 07:09

so the thing is I want to use appwrite with my hosting where I can upload files directly to make them work suppose I have build a server in next.js I will do npm build then upload the files generated to the hosting site but due to appwrite being in docker I can't do that

I have already tried reversing the images of docker but it didn't helped much tried other alternatives but can't seen to move on from appwrite

solutions can be maybe the source code that is in javascript or any other language - can't seem to find any online or maybe someway to get the build (like how we do npm run build) from docker or something..

please help me it would really really help

also I don't want to use any other vms or something like that to host as I already have hosting for 1 year that I really want to use

TL;DR
Appwrite cannot be used as a PHP app out-of-the-box as it requires other services to function. Docker is needed to run Appwrite and it depends on many microservices. If your hosting site does not allow the use of Docker, you may need to find an alternative solution. One solution suggested is to create another Docker with Node.js and Nginx, running Next.js with PM2. This would allow you to run Appwrite on the same VM as your Next.js server. Another solution mentioned is to host the PHP files separately. You can upload the files to your hosting site and have the main file as index.php
vedant
3 Jan, 2024, 07:16

so I just found out that php is used by appwrite so my bad the solution can be either how to host the php file like usually it can be hosted by uploading the files and main file being index.php which serves the home page

KweeBoss
3 Jan, 2024, 07:57

You can create another docker with nodejs and nginx. Run NEXT in nodejs with PM2. It should be expose to localhost port that is like 3050 or something. and run appwrite on that vm too. Let NginX to handle yourdomain.com and appwrite.yourdomain.com and forward traffic internally. Also add websocket to nginx to make sure appwrite realtime is working. It works.

vedant
3 Jan, 2024, 09:12

thank you for the reply but this seems too complicated any other solution 🫠

D5
3 Jan, 2024, 09:56

@vedant Appwrite needs docker to run, basically because it depends on many microservices, mainly for the serverless functions feature. Are you able to run there docker?

vedant
3 Jan, 2024, 14:27

no the hosting site doesn't allows to use docker

Binyamin
3 Jan, 2024, 16:48

In this case Appwrite might won't work Appwrite can't be used as an PHP app out-of-the-box as it depends in many other services to work together

Check this to find about Appwrite architecture.

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