• 14

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I'm new to docker. The developers on my work create a docker-compose with mongodb and asp.net core application setup, although its funcional, they didin't setup SSL for the application, mongodb isn't configured with ssl either, and all login and password information are in clear text on the docker-compose file.

Can anyone share a sample docker-compose file for mongodb with ssl? Mine is giving me an error informing that the access to the certificate is denied: These are my docker-compose for mongodb:

    image: mongo:latest
      - MONGODB_USERNAME:username
      - MONGODB_PASSWORD:password
      - MONGODB_DATABASE:database
      - /home/mongodbdata:/data/db
      - /home/mongodbcert/mongodb.pem:/data/ssl/mongodb.pem
      - /home/mongodbcert/mongodb-cert.crt:/data/ssl/mongodb-cert.crt
      - "27017:27017"

When i run docker-compose up i receive the error: "E NETWORK [main] cannot read certificate file: /data/ssl/mongodb.pem error:0200100D:system library:fopen:Permission denied"

I also would appreciate some instructions on how secure sensitive data, taking then off docker-compose file. What is the best practices?

Thank you. LCR

Trending Tags