https://gist.github.com/javahippie/efee5417c69aaad3baf297dd2cd71fc6

  
version: '3.3'  
  
services:  
  go-ethereum:  
    build:  
      context: go-ethe/  
    ports:  
      - "8545:8545"  
      - "30303:30303"  
    networks:  
      - elk  
  
networks:  
  elk:  
    driver: bridge  
  

  
FROM ubuntu:xenial  
  
RUN apt-get update \  
     && apt-get install -y wget \  
     && rm -rf /var/lib/apt/lists/*   
  
WORKDIR "/opt"  
ARG BINARY="geth-linux-amd64-1.8.17-8bbe7207.tar.gz"  
RUN wget "https://gethstore.blob.core.windows.net/builds/$BINARY"  
RUN tar -xzvf $BINARY --strip 1  
RUN rm $BINARY  
  
ADD ./genesis.json ./genesis.json  
RUN ./geth init genesis.json  
  
CMD nohup ./geth  --dev --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "*"  --mine   
#geth --syncmode "light" --cache=2048  
  
EXPOSE 8545  
EXPOSE 30303