Installation | wundergraph
Version: Next

Installation

The WunderGraph Node has very few system requirements. It can be installed on a local laptop, a virtual machine or dedicated hardware.

The machine that the Node is deployed to will need:

  • Docker installed (optional docker-compose)
  • Internet access (to pull configurations from the WunderGraph platform)
  • etcd3 database (for local distributed session storage)
  1. Create a docker network
  2. Start your etcd database
  3. Configure your WunderNode
  4. Start the Gateway

1. Create a docker network

docker network create wundergraph

2. Start etcd

docker run -itd \
-e ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 \
-e ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 \
--name etcd \
--rm \
--network wundergraph \
gcr.io/etcd-development/etcd:v3.2.9

3. Configure WunderNode

As this is a quickstart, we will go with the simplest configuration option. For further configuration options, see the Gateway Configuration Reference

For this step, you will need to copy your development WunderNode secret from the WunderGraph Console.

export GATEWAY_SECRET=REPLACE.WITH.YOUR.SECRET
docker pull wundergraph/wundernode:latest && \
docker run -it \
-e GATEWAY_SECRET=${GATEWAY_SECRET} \
--rm \
--name wundernode \
--network wundergraph \
-p 8040:8040 \
wundergraph/wundernode:latest