From 762b5cb037d2a8709edd3fffb4a40974fdbe2e6d Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 1 Sep 2021 09:06:20 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Added=20mongo=20container=20and?= =?UTF-8?q?=20fixed=20an=20ENV=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ docker-compose.yml | 13 ++++++++++--- threetwo-import-service.env | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2130f5..5b2dbd2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # ThreeTwo! +ThreeTwo! is a comic book curation app. + ⚠️ This project is in early stages of development and as such, not ready for general use. ## Dependencies @@ -20,6 +22,7 @@ Make sure that you have `docker` and `docker-compose` installed. 2. Create an external docker network using `docker network create proxy` 3. Run `docker-compose up --build -d` 4. Note that the first time, the process could take up to 10 minutes, since it is building containers for `threetwo`, `threetwo-import-service`, `comicvine-service`, `mongo`, `nats`, `nginx` +5. For posterity, check that all containers are up using `docker ps` ## Local Development diff --git a/docker-compose.yml b/docker-compose.yml index eaf3472..40f5f0e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,6 +58,7 @@ services: env_file: threetwo-import-service.env depends_on: - nats + - mongodb networks: - proxy @@ -65,7 +66,10 @@ services: build: context: https://github.com/rishighan/threetwo-import-service.git image: frishi/threetwo-import-service - container_name: import + container_name: import + depends_on: + - mongodb + - nats environment: SERVICES: import env_file: threetwo-import-service.env @@ -76,7 +80,10 @@ services: build: context: https://github.com/rishighan/threetwo-import-service.git image: frishi/threetwo-import-service - container_name: image-transformation + container_name: image-transformation + depends_on: + - mongodb + - nats environment: SERVICES: imagetransformation env_file: threetwo-import-service.env @@ -85,7 +92,7 @@ services: mongodb: image: 'bitnami/mongodb:latest' - container_name: mongodb + container_name: db networks: - proxy ports: diff --git a/threetwo-import-service.env b/threetwo-import-service.env index 7025896..2059d18 100644 --- a/threetwo-import-service.env +++ b/threetwo-import-service.env @@ -2,7 +2,7 @@ NAMESPACE= LOGGER=true LOGLEVEL=info SERVICEDIR=dist/services -MONGO_URI=mongodb://localhost:27017/threetwo +MONGO_URI=mongodb://db:27017/threetwo TRANSPORTER=nats://nats:4222 CACHER=Memory