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
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
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.
thank you for the reply but this seems too complicated any other solution 🫠
@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?
no the hosting site doesn't allows to use docker
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.
Recommended threads
- Re-connect site to domain verification f...
I have mistakenly deleted appwrite site without removing domain. Now I created same site and want to re-connect my domain. It gives this error while verify. How...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Getting error when trying to add domain ...
we use self hosted appwrite on my company and every single time ever I tried to add a domain it shows this error on the top rigth: "Cannot read properties of un...