Skip to content

Commit

Permalink
chore(docker): adds newer image adds certain improvements to docker c…
Browse files Browse the repository at this point in the history
…ompose
  • Loading branch information
0x4139 committed May 9, 2023
1 parent 4639b7f commit a3e608e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:stretch as build-env
FROM golang:1.20.4 as build-env

# Install minimum necessary dependencies
ENV PACKAGES curl make git libc-dev bash gcc
Expand All @@ -17,7 +17,7 @@ RUN make clean
RUN make build-linux

# Final image
FROM golang:stretch as final
FROM golang:1.20.4 as final

WORKDIR /

Expand Down
36 changes: 34 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@ volumes:
node-2:
node-3:
node-4:
blockscout:
networks:
testnet:
driver: bridge
ipam:
config:
- subnet: 192.168.0.0/24
services:
# explorer
explorer:
image: alethio/ethereum-lite-explorer
depends_on:
- node-0
networks:
testnet:
environment:
- "APP_NODE_URL=http://localhost:8545"
ports:
- "4000:80"
# prometheus
prometheus:
image: prom/prometheus
Expand All @@ -40,6 +52,9 @@ services:
# node bootstrap
bootstrap:
image: humansd/node
build:
dockerfile: Dockerfile
context: .
volumes:
- gentxs:/humans/gentx
- node-0:/humans/node-0
Expand All @@ -54,8 +69,9 @@ services:
# node
node-0:
image: humansd/node
ports:
- "26660:26660"``
build:
dockerfile: Dockerfile
context: .
networks:
testnet:
ipv4_address: 192.168.0.10
Expand All @@ -69,6 +85,9 @@ services:
# node
node-1:
image: humansd/node
build:
dockerfile: Dockerfile
context: .
networks:
testnet:
ipv4_address: 192.168.0.11
Expand All @@ -82,6 +101,9 @@ services:
# node
node-2:
image: humansd/node
build:
dockerfile: Dockerfile
context: .
networks:
testnet:
ipv4_address: 192.168.0.12
Expand All @@ -95,6 +117,9 @@ services:
# node
node-3:
image: humansd/node
build:
dockerfile: Dockerfile
context: .
networks:
testnet:
ipv4_address: 192.168.0.13
Expand All @@ -108,6 +133,9 @@ services:
# node
node-4:
image: humansd/node
build:
dockerfile: Dockerfile
context: .
networks:
testnet:
ipv4_address: 192.168.0.14
Expand All @@ -118,3 +146,7 @@ services:
- start-humans
volumes:
- node-4:/data
ports:
- "26660:26660"
- "8545:8545"
- "8546:8546"

0 comments on commit a3e608e

Please sign in to comment.