./priv/roles/Backend.sh in stacco-0.1.30 vs ./priv/roles/Backend.sh in stacco-0.1.32
- old
+ new
@@ -3,14 +3,21 @@
echo "${DOMAIN}" > /etc/bexng/name
cat >"/etc/bexng/secrets.exs" <<EOF
[
authy_url: "${AUTHY_URL}",
authy_key: "${AUTHY_KEY}",
+
+ identitymind_url: "${IDENTITYMIND_URL}",
+ identitymind_id: "${IDENTITYMIND_ID}",
+ identitymind_secret: "${IDENTITYMIND_SECRET}",
+
mandrill: "${MANDRILL_KEY}",
+
admin: "${BEXNG_DEFAULT_ADMIN_EMAIL}",
admin_password: "${BEXNG_DEFAULT_ADMIN_PASSWORD}",
+
coin_networks: [:"${WALLET_NETWORK}"],
wallets: [
{"${WALLET_NAME}", [
network: "${WALLET_NETWORK}",
@@ -39,11 +46,10 @@
docker-utils define-ambassador-service "postgresql" \
"${DB_HOST}" "${DB_PORT}"
docker-utils define-service "bexio/bitcoind" \
- --volume "/volumes/bitcoind:/var/lib/bitcoin" \
-e "NETWORK=${WALLET_NETWORK}"
docker-utils define-service "bexio/bexng" \
--dependency "bitcoind" \
--dependency "postgresql" \
@@ -55,12 +61,18 @@
docker-utils define-service "bexio/bexng-frontend" \
--dependency "bexng" \
--publish="80:8080"
+echo "bootstrapping bitcoind service"
+start bitcoind
+stop bitcoind
+bitcoind_data_volume=$(docker inspect -f '{{.Volumes}}' bitcoind-data | tr '[]' ' ' | cut -d' ' -f 2 | cut -d':' -f 2)
+pushd "${bitcoind_data_volume}" >/dev/null
+ aws --region="${AWS_REGION}" s3 cp --recursive "s3://bex-blockchain-${WALLET_NETWORK}/" "./"
+popd >/dev/null
-
echo "starting docker-container services..."
-start postgresql
start bitcoind
+start postgresql
start bexng
start bexng-frontend