AeMdw Docker Setup Documentation
Last updated
Was this helpful?
Last updated
Was this helpful?
AeMdw is a middleware that acts as a caching and reporting layer for the . 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.
Download a full backup from .
Create a data
directory under the root repository directory and extract the backup using the following command:
This will extract the mnesia
and mdw.db
folders to the data
directory.
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
.
Create the necessary directories for data storage and logs:
Ensure the directories have the correct permissions to allow the middleware to write to them:
If you want to use a database snapshot:
Extract the backup to the data
directory:
This will place the mnesia
and mdw.db
folders under the data
directory.
Start the container with the following command:
This command starts the middleware in a docker container. The middleware will be available at http://localhost:4000
. Note that you can pass the -d flag to run the container in detached mode.
To check if the middleware is running properly, visit the /status
endpoint and ensure that node_height
is higher than 0
.
To check the logs, run the following command:
To check the status of the container, run the following command:
To stop the container, run the following command:
To restart the container, run the following command:
Edit the configuration file docker/aeternity.yaml
to specify network settings:
ae_mainnet
for mainnet
ae_uat
for testnet
A 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.
Download a full backup from .
Refer to for more details.