
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
- Delete account on authentication
I'm building an authentication that need to a user a choice of delete their account when they need and on the documentation, if I find delete sessions or sessio...
- enum Invalid document structure characto...
i am getting this error when adding up updating an enum value. I have for example enum attribute which has some enums and also this enum internationale_küche, w...
- Graphql Queries
Can some one help me with some examples to write graphql queries using appetite SDK, to fetch related data in different collections. I have gone through the doc...
