From 99722b05f69dbeb7059cd296d6d66bb1d452d478 Mon Sep 17 00:00:00 2001
From: jpsl <joao.luis@pdmfc.com>
Date: Wed, 1 Jun 2022 15:27:47 +0100
Subject: [PATCH] #74 - testing bootCompose.sh using pre-built image

---
 docker/api/docker-compose.yml | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/docker/api/docker-compose.yml b/docker/api/docker-compose.yml
index c1a26656..12c3af3e 100644
--- a/docker/api/docker-compose.yml
+++ b/docker/api/docker-compose.yml
@@ -2,8 +2,11 @@ version: "2.3"
 x-participant-def:
   &participant-def
   restart: "unless-stopped"
-  build:
-    context: ../api
+  # Uncomment build+context to build from git master. See also fgt-workspace below (which may share the same image).
+  # Uncomment image to use pre-built image.
+  #build:
+  #  context: ../api
+  image: joaoluispdm/pharmaledger-imi-fgt:v0.9.6
   healthcheck:
     test: [ "CMD", "curl", "--fail", "http://localhost:3009" ] # looks for the swagger instance, the last thing to boot
     interval: 20s
@@ -95,8 +98,11 @@ services:
 
   fgt-workspace:
     container_name: fgt-workspace
-    build:
-      context: ../api/traceability
+    # Uncomment build to build from git master.
+    # Uncomment image to use pre-built image.
+    #build:
+    #  context: ../api/traceability
+    image: joaoluispdm/pharmaledger-imi-fgt:v0.9.6
     hostname: fgt-workspace
     restart: "unless-stopped"
     labels: