Skip to content

Instantly share code, notes, and snippets.

View atilla8huno's full-sized avatar

Átilla Barros atilla8huno

View GitHub Profile
@atilla8huno
atilla8huno / mongo-docker.bash
Created October 29, 2018 11:29 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@atilla8huno
atilla8huno / introrx.md
Created June 5, 2016 21:57 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing