From f4dca658f20dcf41d46ae7aca57ddcecacba6275 Mon Sep 17 00:00:00 2001 From: Kevin Babakhani Date: Sat, 22 Jun 2024 18:38:53 -0700 Subject: [PATCH] account.ts and docker-compose.yaml changes --- src/account/account.ts | 2 +- src/notification/docker-compose.yaml | 78 ++++++++++++++-------------- 2 files changed, 41 insertions(+), 39 deletions(-) diff --git a/src/account/account.ts b/src/account/account.ts index e1a04008..44feaeeb 100644 --- a/src/account/account.ts +++ b/src/account/account.ts @@ -17,7 +17,7 @@ export const MICROSERVICE = config.microservice.account; export const PORT = config.microservice.port; // URL to mongoDB cluster -export const URL = `mongodb+srv://${USR}:${PSW}@${CLUS}.cgornhw.mongodb.net/Luminosity`; +export const URL = process.env.MONGO_DB_URL ?? ""; // Creates an Express application export const app = express(); diff --git a/src/notification/docker-compose.yaml b/src/notification/docker-compose.yaml index 650ca949..d44e4b1d 100644 --- a/src/notification/docker-compose.yaml +++ b/src/notification/docker-compose.yaml @@ -1,41 +1,43 @@ -version: "3" -services: - publish-service: - container_name: "publish-service" - build: - context: './publish' - env_file: - - ./.env - volumes: - - ./publish:/app - ports: - - 4000:4000 - networks: - - microservice - depends_on: - - activemq +# version: "3" +# services: +# publish-service: +# container_name: "publish-service" +# build: +# context: './publish' +# env_file: +# - ./.env +# volumes: +# - ./publish:/app +# ports: +# - 4000:4000 +# networks: +# - microservice +# depends_on: +# - activemq - subscribe-service: - container_name: subscribe-service - build: - context: './subscribe' - env_file: - - ./.env - volumes: - - ./subscribe:/app - networks: - - microservice - depends_on: - - activemq +# subscribe-service: +# container_name: subscribe-service +# build: +# context: './subscribe' +# env_file: +# - ./.env +# volumes: +# - ./subscribe:/app +# networks: +# - microservice +# depends_on: +# - activemq - activemq: - image: rmohr/activemq - container_name: activemq - networks: - - microservice - ports: - - "8161:8161" - - "1883:1883" +# activemq: +# image: rmohr/activemq +# container_name: activemq +# networks: +# - microservice +# ports: +# - "8161:8161" +# - "1883:1883" -networks: - microservice: \ No newline at end of file +# networks: +# microservice: + +# TODO: DEPRECATED/REMOVED AFTER VERSION 1.0 \ No newline at end of file