From ec2e341e60fd606a31802b3338f9fa9c3400a88c Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Tue, 2 Feb 2021 08:23:12 -0800 Subject: [PATCH] config volumes --- .gitignore | 1 + README.md | 6 ++++-- docker-compose.yml | 8 ++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a0408f81 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +service-configs/* diff --git a/README.md b/README.md index 033967de..d43e6387 100644 --- a/README.md +++ b/README.md @@ -19,5 +19,7 @@ docker-compose down -v rebuild an images ``` -docker-compose up -d --no-deps --build -``` \ No newline at end of file +docker-compose up --build +`` + +Deployment variables are writtend to service-configs/.env after everthing is up.` diff --git a/docker-compose.yml b/docker-compose.yml index b713752c..6e2d2a9c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,10 +3,14 @@ version: "3" volumes: ganache-db: {} postgres-db: {} - contract-config: {} bee-data: {} signer-data: {} bloxberg-data: {} + contract-config: + driver_opts: + type: local + o: bind + device: ./service-configs networks: default: @@ -101,7 +105,7 @@ services: DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres} DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2} ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi} - deploy: + deploy: restart_policy: condition: on-failure depends_on: