Skip to content

Commit

Permalink
account.ts and docker-compose.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinLemon112 committed Jun 23, 2024
1 parent 590fbc7 commit f4dca65
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
78 changes: 40 additions & 38 deletions src/notification/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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:
# networks:
# microservice:

# TODO: DEPRECATED/REMOVED AFTER VERSION 1.0

0 comments on commit f4dca65

Please sign in to comment.