Skip to content

Commit

Permalink
Update flextesa+sandbox setup
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Nov 27, 2021
1 parent 887a26f commit 16fdec1
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ sandbox-images:
docker-compose -f docker-compose.sandbox.yml pull

sandbox:
COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d elastic db api indexer metrics gui
COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d

flextesa-sandbox:
COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d
COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.flextesa.yml up -d

sandbox-down:
COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml down
Expand Down
113 changes: 113 additions & 0 deletions docker-compose.flextesa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
version: "3.6"
services:
elastic:
image: bakingbad/bcdhub-elastic:4.0
restart: always
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
logging: &bcd-logging
options:
max-size: 10m
max-file: "5"

db:
image: postgres:12
shm_size: 1g
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=indexer
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db:/var/lib/postgresql/data
logging: *bcd-logging

api:
restart: always
image: bakingbad/bcdhub-api:4.0
environment:
- BCD_ENV=sandbox
- GIN_MODE=debug
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
ports:
- 127.0.0.1:14000:14000
volumes:
- bcdshare:/etc/bcd
links:
- "flextesa:sandbox"
logging: *bcd-logging

indexer:
restart: always
image: bakingbad/bcdhub-indexer:4.0
environment:
- BCD_ENV=sandbox
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- db
- metrics
links:
- "flextesa:sandbox"
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging

metrics:
restart: always
image: bakingbad/bcdhub-metrics:4.0
environment:
- BCD_ENV=sandbox
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
links:
- "flextesa:sandbox"
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging

flextesa:
restart: always
image: tqtezos/flextesa:20211025
command: granabox start
environment:
- block_time=4
ports:
- "20000:20000"
expose:
- 20000/tcp
logging: *bcd-logging

gui:
container_name: sandbox-gui
restart: always
image: bakingbad/bcdhub-gui:4.0
depends_on:
- api
ports:
- 127.0.0.1:8000:80
logging: *bcd-logging

volumes:
esdata:
bcdshare:
db:
driver: local
11 changes: 0 additions & 11 deletions docker-compose.sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ services:
- bcdshare:/etc/bcd
logging: *bcd-logging

flextesa:
restart: always
image: tqtezos/flextesa:20210514
command: flobox start
environment:
- block_time=4
ports:
- 127.0.0.1:8732:20000
- 172.17.0.1:8732:20000
logging: *bcd-logging

gui:
container_name: sandbox-gui
restart: always
Expand Down

0 comments on commit 16fdec1

Please sign in to comment.