./priv/roles/Backend.sh in stacco-0.1.20 vs ./priv/roles/Backend.sh in stacco-0.1.21

- old
+ new

@@ -1,6 +1,11 @@ +# DockerHost tools +run-gist "tsutsu/72c4ac40591f96ad379f" +mkdir -p /var/lib/docker && mount /dev/xvdc /var/lib/docker +mkdir -p /volumes && mount /dev/xvdd /volumes + # create bexng file-based config mkdir -p /etc/bexng echo "${DOMAIN}" > /etc/bexng/name cat >"/etc/bexng/secrets.exs" <<EOF [ @@ -19,31 +24,30 @@ ] ] EOF -define_container "quay.io/bexio/postgresql" \ +docker-bootstrap + +docker-define-service "quay.io/bexio/postgresql" \ --volume "/volumes/postgresql:/var/lib/postgresql" -define_container "quay.io/bexio/bitcoind" \ +docker-define-service "quay.io/bexio/bitcoind" \ --volume "/volumes/bitcoind:/var/lib/bitcoin" -define_container "quay.io/bexio/bexng" \ +docker-define-service "quay.io/bexio/bexng" \ --dependency "bitcoind" \ --dependency "postgresql" \ --volume "/etc/bexng:/target" \ --publish="51607:51607" \ -e "BEXNG_TARGET_SYSTEM=${DOMAIN}" -define_container "quay.io/bexio/bexng_frontend" \ +docker-define-service "quay.io/bexio/bexng_frontend" \ --dependency "bexng" \ --publish="80:8080" -echo "setting up docker:" -create_docker_library - -echo "starting container services:" +echo "starting docker-container services..." start postgresql start bitcoind start bexng start bexng_frontend