Skip to content

Commit

Permalink
feat: add tag latest to the mediator docker image (#118)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
Signed-off-by: Fabio <Pinheiro>
  • Loading branch information
FabioPinheiro authored and Fabio committed Apr 30, 2024
1 parent 6eded4e commit 264bd1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 264bd1f

Please sign in to comment.