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.yml
or 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/graphql
in your web browser. Replaceip
with 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
- Query.select() vs GraphQL
Hi, I am quite new in the Appwrite environment and could someone lighten me up on what is the difference between request with GraphQL and Query.select() it seem...
- Question regarding GraphQL the Apple SDK
New to using AppWrite and have been trying to get started with using graphQL as it is my preferred way of querying data. I noticed that there doesn't seem to be...
- Help for GraphQL with Flutter
Hello everyone. I would like to know if someone can provide me with an example of using the GraphQL API with Flutter for example to list all the documents in a ...