Skip to content

Commit 0c4581a

Browse files
committed
feat: add docker-compose setup
1 parent c446a42 commit 0c4581a

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

client/build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
cp -n .env.example .env
2-
docker build . -t etherdocs-client
1+
cp -n .env.example .env

client/run.sh

-1
This file was deleted.

docker-compose.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: '3.8'
2+
3+
services:
4+
client:
5+
build:
6+
context: ./client
7+
ports:
8+
- "3000:3000"
9+
container_name: etherdocs-client
10+
11+
server:
12+
build:
13+
context: ./server
14+
ports:
15+
- "5000:5000"
16+
container_name: etherdocs-server
17+
18+
chain:
19+
build:
20+
context: ./smart_contracts
21+
ports:
22+
- "8545:8545"
23+
container_name: etherdocs-chain

docker-setup.txt

+10-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ requirements
66
- ipfs desktop
77
- docker
88

9-
1. in all the folders "server", "client" and "smart_contracts" there are build.sh and run.sh scripts run them in that order
10-
2. add the local chain with rpc url http://127.0.0.1:8545/ to metamask
11-
3. get the logs of the etherdocs-chain container and use the private keys to add accounts to the metamask wallet
12-
4. make sure to clear account data before every new session
9+
10+
steps
11+
12+
- cd into the client folder and execute the build.sh script with "bash build.sh"
13+
- start ipfs desktop application
14+
- add the local chain with rpc url http://127.0.0.1:8545/ and chainid 31337 to metamask and reset account data
15+
- run "docker-compose up" in the project root folder
16+
- get the logs of the etherdocs-chain container and use the private keys to add accounts to the metamask wallet
17+
- make sure to clear account data before every new session
18+
- visit http://localhost:3000/

server/build.sh

-1
This file was deleted.

server/run.sh

-1
This file was deleted.

0 commit comments

Comments
 (0)