Skip to content

Commit

Permalink
Extend template compose file (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev authored Mar 7, 2024
1 parent a6c1e7c commit 03c61be
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 15 deletions.
2 changes: 0 additions & 2 deletions dappnode_package_template.json → dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"arg": "NETWORK",
"argInServices": ["geth"],
"upstreamVersion": "v1.13.14",
"upstreamRepo": "ethereum/go-ethereum",
"upstreamArg": "UPSTREAM_VERSION",
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
version: "3.5"
services:
geth:
# TODO: image should be defined by SDK in build action (alredy done in theory)
# TODO: image should be defined by SDK in build action (already done in theory)
build:
context: geth
args:
UPSTREAM_VERSION: v1.13.14
# TODO: SDK should add here NETWORK (passed as flag to build action)
volumes:
- "geth:/root/.ethereum"
environment:
- EXTRA_FLAGS=--http.api eth,engine,net,web3,txpool
- SYNCMODE=snap
restart: unless-stopped
# TODO: Add ports here from package_variants/NETWORK/dappnode_package.json (ports array)
volumes:
geth: {}
3 changes: 1 addition & 2 deletions package_variants/goerli/dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"serviceName": "geth",
"port": 8546
}
],
"ports": ["30803:30803/tcp", "30803:30803/udp"]
]
}
8 changes: 8 additions & 0 deletions package_variants/goerli/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
geth:
environment:
NETWORK: "goerli"
ports:
- "30803:30803/tcp"
- "30803:30803/udp"
3 changes: 1 addition & 2 deletions package_variants/holesky/dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"serviceName": "geth",
"port": 8546
}
],
"ports": ["31403:31403/tcp", "31403:31403/udp"]
]
}
8 changes: 8 additions & 0 deletions package_variants/holesky/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
geth:
environment:
NETWORK: "holesky"
ports:
- "31403:31403/tcp"
- "31403:31403/udp"
3 changes: 1 addition & 2 deletions package_variants/lukso/dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"serviceName": "geth",
"port": 8546
}
],
"ports": ["33141:33141/tcp", "33141:33141/udp"]
]
}
8 changes: 8 additions & 0 deletions package_variants/lukso/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
geth:
environment:
NETWORK: "lukso"
ports:
- "33141:33141/tcp"
- "33141:33141/udp"
3 changes: 1 addition & 2 deletions package_variants/mainnet/dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"serviceName": "geth",
"port": 8546
}
],
"ports": ["30403:30403/tcp", "30403:30403/udp"]
]
}
8 changes: 8 additions & 0 deletions package_variants/mainnet/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
geth:
environment:
NETWORK: "mainnet"
ports:
- "30403:30403/tcp"
- "30403:30403/udp"
3 changes: 1 addition & 2 deletions package_variants/sepolia/dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@
"fromSubdomain": "sepolia-geth",
"port": 8545
}
],
"ports": ["35415:35415/tcp", "35415:35415/udp"]
]
}
8 changes: 8 additions & 0 deletions package_variants/sepolia/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
geth:
environment:
NETWORK: "sepolia"
ports:
- "35415:35415/tcp"
- "35415:35415/udp"

0 comments on commit 03c61be

Please sign in to comment.