diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a2bf99edbbfb6d28182f49dbaf348ee628d95aa8 --- /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 0000000000000000000000000000000000000000..e8c7d581c1430f00c40aecd1883eaa39ea18e14a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.4' + +services: + redis: + image: "redis:alpine" + container_name: redis + ports: + - "6379:6379"