This guide will walk you through deploying Neo4j on Akash, a decentralized cloud computing platform, using the official Neo4j Docker image.
Prerequisites
- Akash CLI installed and configured with your wallet.
- A funded wallet with sufficient AKT to cover deployment costs.
- Basic knowledge of Akash and Docker.
Step 1: Prepare the SDL File
Save the following content as deploy.yaml
:
Step 2: Deploy on Akash
-
Create the deployment: Run the following command to create a deployment from the
deploy.yaml
file: -
Monitor the deployment: After the deployment is created, query its status:
-
Bid on the deployment: Wait for providers to bid on your deployment. Accept a bid with:
-
Get the service endpoint: Once the lease is created, retrieve the service endpoint using:
Step 3: Access Neo4j
- Open a browser and navigate to
http://<service-endpoint>
for the Neo4j UI. - Connect to the Bolt protocol using port
7687
if required for programmatic access.
Step 4: Secure Your Deployment
- Replace
NEO4J_AUTH=neo4j/testpassword
in the SDL file with a secure password. - Use environment variables to securely manage sensitive credentials.
This guide should get you up and running with Neo4j on Akash.