@@ -3,20 +3,21 @@ services:
33 image : ghcr.io/foundry-rs/foundry:nightly
44 platform : linux/amd64
55 ports :
6- - " 8545 :8545"
6+ - " 8546 :8545"
77 volumes :
8- - ./:/dss
8+ - .. /:/dss
99 environment :
1010 - ANVIL_IP_ADDR=0.0.0.0
11- working_dir : /dss/contracts
11+ working_dir : /dss/onchain/ contracts
1212 command : anvil --no-cors
1313
1414 contract-builder :
1515 image : node:22.5-slim
16+ user : " node"
1617 platform : linux/amd64
1718 volumes :
18- - ./:/dss
19- working_dir : /dss/contracts
19+ - .. /:/dss
20+ working_dir : /dss/onchain/ contracts
2021 depends_on :
2122 - anvil
2223 entrypoint :
@@ -29,10 +30,11 @@ services:
2930
3031 contract-deployer :
3132 image : ghcr.io/foundry-rs/foundry:nightly
33+ user : " root"
3234 platform : linux/amd64
3335 volumes :
34- - ./:/dss
35- working_dir : /dss/contracts
36+ - .. /:/dss
37+ working_dir : /dss/onchain/ contracts
3638 depends_on :
3739 - anvil
3840 entrypoint :
@@ -50,11 +52,12 @@ services:
5052 aggregator :
5153 image : square-number-dss-aggregator
5254 build :
53- context : .
54- dockerfile : aggregator/Dockerfile
55+ # Change context to parent directory which contains the workspace root
56+ context : ..
57+ dockerfile : karak_offchain/aggregator/Dockerfile
5558 platform : linux/amd64
5659 volumes :
57- - ./:/dss
60+ - .. /:/dss
5861 ports :
5962 - " 3000:3000"
6063 healthcheck :
@@ -72,7 +75,7 @@ services:
7275 - COMMON_RATE_LIMIT_WINDOW_MS=1000
7376 - COMMON_RATE_LIMIT_MAX_REQUESTS=10000
7477 - PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
75- - BLOCK_NUMBER_STORE=/dss/contracts/block-number-store.json
78+ - BLOCK_NUMBER_STORE=/dss/onchain/ contracts/block-number-store.json
7679 - RUST_LOG=info
7780 - SQUARE_NUMBER_DSS_ADDRESS=0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE
7881 - TXN_VERIFIER_ADDRESS=0x3Aa5ebB10DC797CAC828524e59A333d0A371443c
@@ -83,9 +86,12 @@ services:
8386 operator-1 :
8487 image : square-number-dss-operator
8588 build :
86- context : .
87- dockerfile : operator/Dockerfile
89+ # Change context to parent directory which contains the workspace root
90+ context : ..
91+ dockerfile : karak_offchain/operator/Dockerfile
8892 platform : linux/amd64
93+ volumes :
94+ - ../:/dss
8995 ports :
9096 - " 8080:8080"
9197 environment :
@@ -111,9 +117,12 @@ services:
111117 operator-2 :
112118 image : square-number-dss-operator
113119 build :
114- context : .
115- dockerfile : operator/Dockerfile
120+ # Change context to parent directory which contains the workspace root
121+ context : ..
122+ dockerfile : karak_offchain/operator/Dockerfile
116123 platform : linux/amd64
124+ volumes :
125+ - ../:/dss
117126 ports :
118127 - " 8081:8081"
119128 environment :
@@ -134,4 +143,4 @@ services:
134143 - RUST_BACKTRACE=full
135144 depends_on :
136145 aggregator :
137- condition : service_healthy
146+ condition : service_healthy
0 commit comments