AeMdw Docker Setup Documentation
Overview
AeMdw is a middleware that acts as a caching and reporting layer for the æternity blockchain. It responds to queries more efficiently than the node and supports additional queries.
The middleware runs an Aeternity Node alongside it in the same Docker container and BEAM VM instance. This node can be configured using the aeternity.yaml
file or by passing environment variables, just like configuring the node directly.
Quick Start with Docker Compose
Step 1: Clone the Repository
Step 2: Database Snapshot (Optional)
Download a full backup from Aeternity Downloads.
Create a
data
directory under the root repository directory and extract the backup using the following command:This will extract the
mnesia
andmdw.db
folders to thedata
directory.
Step 3: Start the Application
Run the following command to start the application on the mainnet:
To check if the application is running properly, visit the /status
endpoint and ensure that node_height
is higher than 600000
.
Running with Docker (Without Compose)
Step 1: Create Directories and Set Permissions
Create the necessary directories for data storage and logs:
Ensure the directories have the correct permissions to allow the middleware to write to them:
Step 2: Use a Database Snapshot (Optional)
If you want to use a database snapshot:
Download a full backup from Aeternity Downloads.
Extract the backup to the
data
directory:This will place the
mnesia
andmdw.db
folders under thedata
directory.
Step 3: Run the Container
Start the container with the following command:
Customizing Configuration
Edit the configuration file docker/aeternity.yaml
to specify network settings:
ae_mainnet
for mainnetae_uat
for testnetA custom network name if running your own network or a hyperchain
You can also pass environment variables to configure the node, similar to standard Aeternity Node configuration.
Refer to Aeternity Configuration Docs for more details.
Additional Resources
Last updated
Was this helpful?