From c8f52e99e25c35052ca4d2b10c0b2a6f6e40a1b7 Mon Sep 17 00:00:00 2001
From: Lyuben Penkovski <lyuben.penkovski@vereign.com>
Date: Tue, 15 Feb 2022 10:25:28 +0200
Subject: [PATCH] Add redis and initial README.md

---
 README.md          | 26 ++++++++++++++++++++++++++
 docker-compose.yml |  8 ++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 README.md
 create mode 100644 docker-compose.yml

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a2bf99e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,26 @@
+# workspace 
+
+This is a local development workspace for Trust Services API backend.
+It uses docker-compose to bootstrap the services and their dependencies.
+
+Each service has its own `.env` file in the [env](./env) directory
+with environment variables which will be injected in its container. 
+
+## Prerequisites
+
+* Install [docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/).
+* [Install Go](https://golang.org/doc/install) and set the
+  [`$GOPATH` variable](https://github.com/golang/go/wiki/SettingGOPATH).
+
+## Setup Workspace
+
+TODO
+
+## 3rd Party Services
+
+#### Redis
+
+The Redis server can be reached at `localhost:6397` from your
+local machine. 
+
+The services access Redis from their containers as `redis:6397`
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..e8c7d58
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,8 @@
+version: '3.4'
+
+services:
+  redis:
+    image: "redis:alpine"
+    container_name: redis
+    ports:
+      - "6379:6379"
-- 
GitLab