Skip to content

Instantly share code, notes, and snippets.

@alexisljn
Created June 13, 2022 14:04
Show Gist options
  • Save alexisljn/8ebdece64022fe2ed6af0313efaac763 to your computer and use it in GitHub Desktop.
Save alexisljn/8ebdece64022fe2ed6af0313efaac763 to your computer and use it in GitHub Desktop.
Starter docker compose for Ethereum Dapp
version: "3.8"
services:
hardhat:
image: node:16
container_name: hardhat
working_dir: /home/node/app
volumes:
- ./:/home/node/app
ports:
- 8545:8545
command: sh -c "npm install --verbose && npx hardhat node"
frontend:
image: node:16
container_name: frontend
working_dir: /home/node/app
volumes:
- ./frontend:/home/node/app
ports:
- 80:3000
command: sh -c "npm install --verbose && npm start"
stdin_open: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment