Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
99 lines (90 sloc) 2.33 KB
version: '3.5'
services:
eosio:
container_name: eoslocal_eosio
build:
context: ./services/eosio
dockerfile: Dockerfile
image: eoslocal/eosio
stop_grace_period: 3m0s
ports:
- '8888:8888'
- '9830:9876'
environment:
DATA_DIR: /root/data-dir
CONFIG_DIR: /opt/application/config
VIRTUAL_HOST: eosio.eoslocal.io
VIRTUAL_PORT: 8888
volumes:
- eosio-data-volume:/root/data-dir
- ./services/eosio:/opt/application
- ./contracts:/opt/contracts
depends_on:
- mongo
- wallet
networks:
default:
aliases:
- eosio.eoslocal.io
wallet:
container_name: eoslocal_wallet
image: eosio/eos:v1.5.2
command: /opt/eosio/bin/keosd --wallet-dir /opt/eosio/bin/data-dir --http-server-address=0.0.0.0:8901 --http-alias=wallet.eoslocal:8901 --http-validate-host 0 --verbose-http-errors
hostname: wallet
expose:
- 8901
ports:
- '8901:8901'
volumes:
- keosd-data-volume:/opt/eosio/bin/data-dir
environment:
VIRTUAL_HOST: wallet.eoslocal.io
VIRTUAL_PORT: 8901
networks:
default:
aliases:
- wallet.eoslocal.io
mongo:
container_name: eoslocal_mongo
image: mongo
restart: always
volumes:
- mongo-data-volume:/data/db
ports:
- '27017:27017'
environment:
VIRTUAL_HOST: mongo.eoslocal.io
VIRTUAL_PORT: 27017
networks:
default:
aliases:
- mongo.eoslocal.io
ipfs:
container_name: eoslocal_ipfs
image: jbenet/go-ipfs:latest
restart: always
ports:
- "4001:4001"
- "5001:5001"
- "8081:8080"
volumes:
- ./services/ipfs:/data/ipfs/
# nginx reverse proxy that allows accesing the services directly on the host machine
# the wildcard *.esolocal.io that points to 127.0.0.1,
# therefore as long as you can hit the dns server it will redirect all requests to your machine
# and nginx-proxy does the internal docker network routing to the right service
nginx:
container_name: eoslocal_nginx
image: jwilder/nginx-proxy:alpine
ports:
- '80:80'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
eosio-data-volume:
keosd-data-volume:
external: true
mongo-data-volume:
networks:
default:
name: eoslocal