Skip to content

Instantly share code, notes, and snippets.

View xiaotianxt's full-sized avatar
💭
I may be slow to respond.

Andy Tian xiaotianxt

💭
I may be slow to respond.
View GitHub Profile
@nielsmaerten
nielsmaerten / ! Mongo+TLS on Docker.md
Last active June 7, 2024 15:04
MongoDB + MongoExpress over TLS on Docker

Secure MongoDB on Docker (incl MongoExpress, Let's Encrypt)

This gist contains files and instructions to setup MongoDB on a simple docker host.
Connections to Mongo are secured using TLS, and the certificate is signed using Let's Encrypt.
MongoExpress is included as well, but should only be used over an SSH tunnel.

  1. Update .env

  2. Make sure docker-compose is available

Required on GCP Cloud Optimized OS