Self-hosted

Deploy to Fly.io

Fly.io allows you to deploy app servers all over the world with Docker containers, build packs and nix packs.

This guide requires you to have installed Fly on your machine, you can find the instructions here .

To deploy WunderGraph to Fly.io we will be using our Docker example. Go ahead and clone to the Docker repository to get started.

1
git clone [email protected]:wundergraph/docker.git

Once you've cloned the repo, install all dependencies.

1
cd docker && npm install

Now we're ready to deploy our WunderGraph app to Fly.io. Run the following command and follow the steps, but do not deploy yet.

1
flyctl launch

The Fly app will listen to port 8080 by default, we'll need to change this to 9991. Go ahead and edit fly.toml, which has just been created, change internal_port to 9991.

1
2
3
[[services]]
http_checks = []
internal_port = 9991

Now run fly deploy to deploy the app with the correct internal port.

1
fly deploy

After the deployment is finished, you can open the app in your browser by running the following command.

1
fly open

If everything went well, you should see a beautiful WunderGraph landing page.

Congrats! 🥳 You just deployed your WunderNode to Fly.io

Previous
Overview

Was this article helpful to you?
Provide feedback

Edit this page