This Dockerfile sets up a minimal environment for running a Nym mixnode using the Nym mixnet privacy platform. It is based on the Debian stable-slim image and installs the necessary dependencies for the Nym mixnode binary.
- Base Image:
debian:stable-slim
- Nym Version: The
VERSION
argument is set tov2023.5-rolo
. - Exposed Ports:
1789
: Mixnode communication port.1790
: Mixnode metrics port.8000
: Mixnode HTTP API port.
- Volumes:
/home/nym/.nym
Clone the Nym repository:
git clone https://github.com/cschritt/docker-nym-mixnode.git
Build the Docker image with the following command:
docker build -t nym-mixnode:latest --build-arg VERSION=v2023.5-rolo .
Important
Make sure to adjust the configuration and environment variables according to your specific requirements before running the Docker Compose commands (see configuration).
- Run the following command to initialize the Nym mixnode:
docker-compose run init
- After the initialization is successful, start the Nym mixnode:
docker-compose up mixnode
The mixnode service will expose ports 1789
, 1790
, and 8000
for communication.
nym-node-data
: Persistent volume for storing Nym node data.
NYM_NODE_ID
: Specifies the ID for the Nym node. In this example, it is set tonode-01
. You can customize this value as needed.
For more information on Nym, visit Nym Tech GitHub.
Happy mixing! ๐ต๏ธโโ๏ธ๐