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
- Invalid `region` param: Value must be on...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! I cannot initiate a migration witho...
- Locked out of account
Hey guys, I have a paid account and have been locked out. Apologies for using this method, but I'm getting no response via the contact us page. I had a old do...
- Migration from cloud to self-hosted fail...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! The migration process fails with the ...