Review the documentation to learn more about setting up and deploying a Gateway.
-
A Unix OS
-
Docker and Docker Compose LTS
There are several million transactions on the Arweave chain. In order to effectively serve content on the gateway you'll need a decent sized computer. The ideal specs for a Gateway should have the following:
-
16GB RAM (ideally 32GB RAM)
-
~1TB of SSD storage available
-
Intel i5 / AMD FX or greater, +4 vCPUs should be more than enough, these are typically Intel Xeon CPUs.
By default, there is a default environment you can use located at .env.docker
in the repository.
ARWEAVE_NODES=["https://arweave.net"]
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_USER=arweave
DATABASE_PASSWORD=arweave
DATABASE_NAME=arweave
ENVIRONMENT=public
MANIFESTS=0
BIP39=0
PORT=3000
PARALLEL=4
SNAPSHOT=0
BLOCK_PATH=
TRANSACTION_PATH=
TAGS_PATH=
INDICES=["App-Name", "app", "domain", "namespace"]
Make sure you copy this configuration to .env
.
cp .env.docker .env
You can start the server with docker-compose
.
# with npm
npm run docker:start
# with yarn
yarn docker:start
# with pure docker-compose
docker-compose up --build -d
You can spin down the docker-compose
cluster with.
# with npm
npm run docker:stop
# with yarn
yarn docker:stop
# with pure docker-compose
docker-compose down
You can test if the server and the GraphQL queries are working properly by navigating to.
http://localhost:3000/graphql
This webpage should look similar to.
https://arweave.dev/graphql