Ganache local chain with fixed private key Dockerfile and docker-compose example
git clone https://github.com/ft-jasong/ganache-docker-example.git
cd ganache-docker-example
docker build --build-arg \
NODE_VERSION=<NODE_VERSION> \
GANACHE_VERSION=<GANACHE_VERSION> \
PRIV_KEY=<PRIVATE_KEY> \
INIT_WEI=<INIT_WEI> \
-t <IMAGE_NAME:TAG> .
and run this command
docker run -d -p <PORT>:8545 <IMAGE_NAME:TAG>
Set your settings args section in docker-compose.yml and run the command
docker-compose up -d