mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 01:36:56 +01:00
docker files created
This commit is contained in:
parent
5a96c7fdbe
commit
0d091d0a31
12
compose/Dockerfile
Normal file
12
compose/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3.6
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y vim
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/src/app
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
RUN pip install --upgrade pip ipdb ipython
|
||||||
|
|
||||||
|
COPY . /usr/src/app/
|
||||||
|
|
||||||
|
RUN pip install git+https://github.com/bigchaindb/bigchaindb.git
|
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
version: '2.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image: mongo:3.4.13
|
||||||
|
ports:
|
||||||
|
- "27017"
|
||||||
|
command: mongod
|
||||||
|
bigchaindb:
|
||||||
|
depends_on:
|
||||||
|
- mongodb
|
||||||
|
- tendermint
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./compose/Dockerfile
|
||||||
|
args:
|
||||||
|
branch: master
|
||||||
|
backend: localmongodb
|
||||||
|
environment:
|
||||||
|
BIGCHAINDB_DATABASE_HOST: mongodb
|
||||||
|
BIGCHAINDB_DATABASE_PORT: 27017
|
||||||
|
BIGCHAINDB_SERVER_BIND: 0.0.0.0:9984
|
||||||
|
BIGCHAINDB_WSSERVER_HOST: 0.0.0.0
|
||||||
|
BIGCHAINDB_TENDERMINT_HOST: tendermint
|
||||||
|
BIGCHAINDB_TENDERMINT_PORT: 46657
|
||||||
|
ports:
|
||||||
|
- "9984"
|
||||||
|
- "9985"
|
||||||
|
- "46658"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "bash", "-c", "curl http://bigchaindb:9984 && curl http://tendermint:46657/abci_query"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
command: bigchaindb -l DEBUG start
|
||||||
|
tendermint:
|
||||||
|
image: tendermint/tendermint:0.12
|
||||||
|
volumes:
|
||||||
|
- ./compose/tendermint/tmdata/config.toml:/tendermint/config.toml
|
||||||
|
entrypoint: ''
|
||||||
|
ports:
|
||||||
|
- "46656"
|
||||||
|
- "46657"
|
||||||
|
command: bash -c "tendermint init && tendermint node"
|
Loading…
Reference in New Issue
Block a user