Skip to content

ft-jasong/ganache-docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Ganache Docker Example

Ganache local chain with fixed private key Dockerfile and docker-compose example

Getting Started

git clone https://github.com/ft-jasong/ganache-docker-example.git
cd ganache-docker-example

Start with Dockerfile

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>

Start with docker-compose

Set your settings args section in docker-compose.yml and run the command

docker-compose up -d

About

Using ganache with docker and docker-compose example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published