In this tutorial, we will walk you through the installation process of Hasura on Linux Mint latest version.
sudo docker pull hasura/graphql-engine
mkdir hasura
cd hasura
nano docker-compose.yaml
version: '3'
services:
app:
image: hasura/graphql-engine:v2.0.0-beta.6
ports:
- "8080:8080"
- "9695:9695"
volumes:
- ./config:/hasura/config
- ./migrations:/hasura-migrations
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
depends_on:
- db
db:
image: postgres:12.4
volumes:
- db-data:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
volumes:
db-data:
docker-compose up -d
Open your browser and navigate to http://localhost:8080/console
You can now start using Hasura
That’s it! You have successfully installed Hasura on Linux Mint latest version. If you face any issues during the installation process, feel free to comment below.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!