I self hosted my appwrite server on a linux vps, it is acitvely running on docker and I am connecting it using http://ip/v1 etc, how can I activate the graphql explorer? I tried the script that activates on the port 3000 but going to http://ip:3000/v1/graphql gives 404 error
APPWRITE_ENDPOINT=http://ip/v1
if [ ! -z "$1" ]; then
APPWRITE_ENDPOINT=$1
fi
docker run --rm -p "3000:3000" -e "SERVER_URL=$APPWRITE_ENDPOINT/graphql" appwrite/altair:0.3.0
Hi, have you tried the following:
- SSH into your Linux VPS where the self-hosted Appwrite server is runnin
- Locate the Docker Compose file you used to set up your self-hosted Appwrite server.
docker-compose.ymlor something similar - In the Docker Compose file, you need to add port mapping for the GraphQL explorer. TypeScript
appwrite: ... ports: - "80:80" - "443:443" - "3000:3000" ... - Save the changes to the Docker Compose file and exit the editor. Then, restart your Appwrite Docker containers to apply the changes. TypeScript
docker-compose down docker-compose up -d http://ip:3000/v1/graphqlin your web browser. Replaceipwith the actual IP address of your VPS.
@joeyouss now it says port 3000 is already allocated when I run graphql explorer script
fixed seems like I need to go to just https://ip:3000 not http://ip:3000/v1/graphql
@burakcbdn works for you now?
Yep it works thanks
[SOLVED] How to run GraphQL Explorer on self hosted server on ip
Recommended threads
- Hi Folks, Database Writing Issue
Hey Folks im trying to get logging setup on my website but im getting an error, i dont have any document id and i think this is the issue but i havent got the f...
- Added Custom Domain - API requests with ...
I've added in a custom domain to Appwrite my domain itself is on cloudflare but has Appwrite name servers added and confirmed they work, I added the CAA in clou...
- GRAPH QL Filters
Hey Team The GraphQL API in Appwrite currently only supports single document fetches (databasesGetDocument) properly. So trying to pass databasesListDocuments ...