From 572118b8b9f731b9c73b283fc2bf277f9e438370 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 5 Jan 2017 14:27:06 +0100 Subject: Update README --- docker/README | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'docker/README') diff --git a/docker/README b/docker/README index 8701ab6..ff8ee2a 100644 --- a/docker/README +++ b/docker/README @@ -1,19 +1,23 @@ -=== Dockerizing the Exchange === +=== Dockerizing the Exchange/Merchant === -This section shows how to run a "dockerized" exchange. +This section shows how to run a "dockerized" exchange/merchant. The exchange uses postgresql (container) and is served -by nginx (container). +by nginx (container). The merchant instead depends on exchange +(container) and postgresql (container). The docker's tools needed are: docker, docker-compose, docker-machine. Please refer to Docker's official documentation for their installation instructions. -Before starting to build the exchange's image, make sure a docker-machine -instance is up and running. +Before starting to build the exchange/merchant's image, make sure a +docker-machine instance is up and running. 1. Build the images. -From , give: + is either 'exchange' or 'merchant', depending on what is +to be built. + +From /docker>, give: $ docker-compose build @@ -22,7 +26,7 @@ and nginx images. 2. Launch the service. -The following command launches the exchange and all other services +The following command launches the and all other services it depends on. From the same directory as the previous step, issue: $ docker-compose up @@ -34,15 +38,12 @@ PS. Errors about existing roles/databases can be ignored. 3. Test -Issue the following command to see if the exchange has been correctly -installed and launched. +Issue the following command to see if the has been +correctly installed and launched. +# Some 'greeting' message should be returned. $ curl http://`docker-machine ip`:80/ -and - -$ curl http://`docker-machine ip`:80/keys - === How to use these images === This section explains how to (1) build and (2) run individual -- cgit v1.2.3