From 7b6f488e3010eba65e890fedacbfb83a7739b47f Mon Sep 17 00:00:00 2001 From: Fabio Pinheiro Date: Wed, 20 Sep 2023 15:43:05 +0100 Subject: [PATCH] feat: add tag latest to the mediator docker image (#118) Signed-off-by: Fabio Pinheiro Signed-off-by: mineme0110 --- README.md | 11 +++++++++++ build.sbt | 1 + docker-compose.yml | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd4b3be9..bd657938 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,17 @@ To set up the mediator storage (MongoDB): - `MONGODB_PASSWORD` - is the password used by the Mediator service to connect to the database. - `MONGODB_DB_NAME` - is the name of the database used by the Mediator. +## Run + +This DIDComm Mediator is composed of two elements, a backend service, and a database. +The backend service is a JVM application and the database used is MongoDB. +The backend service is also a web service that has a single-page application that will give the final user an invitation page. + +### Run localy + +Everything can be run with a single command with Docker compose `docker-compose up`. +For a specific version you can setup with `MEDIATOR_VERSION` like `MEDIATOR_VERSION=0.9.2-SNAPSHOT docker-compose up`. + ### MongoDB In cloud Using the mongodb from cloud like MongoDB Atlas. diff --git a/build.sbt b/build.sbt index 0a4f2951..6dafaaae 100644 --- a/build.sbt +++ b/build.sbt @@ -237,6 +237,7 @@ lazy val mediator = project Docker / packageName := "atala-prism-mediator", dockerExposedPorts := Seq(8080), dockerBaseImage := "openjdk:11", + dockerUpdateLatest := true, ) .settings(Test / parallelExecution := false) .settings( diff --git a/docker-compose.yml b/docker-compose.yml index 9faaf783..7152821a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: - ./initdb.js:/docker-entrypoint-initdb.d/initdb.js atalaprism-mediator: - image: ghcr.io/input-output-hk/atala-prism-mediator:${MEDIATOR_VERSION} + image: ghcr.io/input-output-hk/atala-prism-mediator:${MEDIATOR_VERSION:-latest} ports: - "8080:8080" environment: