Skip to content

Commit

Permalink
Merge pull request #21 from dappnode/set-hard-coded-ports-remove-nous…
Browse files Browse the repository at this point in the history
…b-flag

set hardcoded port and remove deprecated flag
  • Loading branch information
alexpeterson91 authored Oct 22, 2022
2 parents bacf1bc + ad8c1d9 commit c2a404d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ RUN apk add --no-cache ca-certificates

COPY --from=builder /go/core-geth/build/bin/geth /usr/local/bin

ENTRYPOINT geth --classic --http --http.addr 0.0.0.0 --http.corsdomain "*" --http.vhosts "*" --ws --ws.origins "*" --ws.addr 0.0.0.0 --syncmode ${SYNCMODE:-snap} $EXTRA_OPTS
ENTRYPOINT geth --classic --http --http.addr 0.0.0.0 --http.corsdomain "*" --http.vhosts "*" --ws --ws.origins "*" --ws.addr 0.0.0.0 --port {$P2P_PORT} --syncmode ${SYNCMODE:-snap} $EXTRA_OPTS
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ services:
volumes:
- "geth:/root/.ethereum"
environment:
- "EXTRA_OPTS=--http.api eth,net,web3,txpool --nousb"
- SYNCMODE
- "EXTRA_OPTS=--http.api eth,net,web3,txpool"
- SYNCMODE=snap
- P2P_PORT=30913
ports:
- "30303"
- 30303/udp
- 30304/udp
- "30913:30913/udp"
- "30913:30913/tcp"
restart: always
volumes:
geth: {}

0 comments on commit c2a404d

Please sign in to comment.