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
- Sites not working
When I deploy NextJS using Appwrite Sites don't work and the build error is related to the WordPress backend link. Is there a solution? Thank you.
- Request failed migration error while mig...
Request failed Please check if your credentials are filled in correctly in the previous step Edit credentials When I check my cloud in the project overview aft...
- 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...