Created
June 13, 2022 14:04
-
-
Save alexisljn/8ebdece64022fe2ed6af0313efaac763 to your computer and use it in GitHub Desktop.
Starter docker compose for Ethereum Dapp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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