Skip to content

Commit

Permalink
mongo security
Browse files Browse the repository at this point in the history
  • Loading branch information
goker-dev committed Oct 30, 2020
1 parent 360225e commit 28ae5ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ services:
CODE_SERVICE: "http://code:4004"
TRANSACTION_SERVICE: "http://transaction:4006"
QR_SERVICE: "http://qr:4008"
MONGOURI: "mongodb://mongo:27017/marka"
MONGOTESTURI: "mongodb://mongo:27017/test-app"
MONGOURI: "mongodb://root:example@mongo:27017/marka?authSource=admin"
MONGOTESTURI: "mongodb://root:example@mongo:27017/test-app?authSource=admin"
APP_SECRET: "5fb44d89aa51fd8d1752f21451f4e079"
TRANSPORTER_SERVICE: "smtp.gmail.com"
TRANSPORTER_EMAIL: ""
Expand All @@ -76,8 +76,8 @@ services:
CODE_SERVICE: "http://code:4004"
TRANSACTION_SERVICE: "http://transaction:4006"
QR_SERVICE: "http://qr:4008"
MONGOURI: "mongodb://mongo:27017/marka"
MONGOTESTURI: "mongodb://mongo:27017/test-app"
MONGOURI: "mongodb://root:example@mongo:27017/marka?authSource=admin"
MONGOTESTURI: "mongodb://root:example@mongo:27017/test-app?authSource=admin"
APP_SECRET: "5fb44d89aa51fd8d1752f21451f4e079"
TRANSPORTER_SERVICE: "smtp.gmail.com"
TRANSPORTER_EMAIL: ""
Expand All @@ -104,8 +104,8 @@ services:
CODE_SERVICE: "http://code:4004"
TRANSACTION_SERVICE: "http://transaction:4006"
QR_SERVICE: "http://qr:4008"
MONGOURI: "mongodb://mongo:27017/marka"
MONGOTESTURI: "mongodb://mongo:27017/test-app"
MONGOURI: "mongodb://root:example@mongo:27017/marka?authSource=admin"
MONGOTESTURI: "mongodb://root:example@mongo:27017/test-app?authSource=admin"
APP_SECRET: "5fb44d89aa51fd8d1752f21451f4e079"
deploy:
replicas: 3
Expand All @@ -128,8 +128,8 @@ services:
CODE_SERVICE: "http://code:4004"
TRANSACTION_SERVICE: "http://transaction:4006"
QR_SERVICE: "http://qr:4008"
MONGOURI: "mongodb://mongo:27017/marka"
MONGOTESTURI: "mongodb://mongo:27017/test-app"
MONGOURI: "mongodb://root:example@mongo:27017/marka?authSource=admin"
MONGOTESTURI: "mongodb://root:example@mongo:27017/test-app?authSource=admin"
APP_SECRET: "5fb44d89aa51fd8d1752f21451f4e079"
TRANSPORTER_SERVICE: "smtp.gmail.com"
TRANSPORTER_EMAIL: ""
Expand Down Expand Up @@ -159,6 +159,10 @@ services:
deploy:
replicas: 3
mongo:
image: mongo
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
command: ["--auth"]
Empty file removed docker-mongo.env
Empty file.
Empty file removed docker-transporter.env
Empty file.

0 comments on commit 28ae5ad

Please sign in to comment.