Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

Best way to set up authentication #11

Open
roborourke opened this issue Oct 31, 2016 · 8 comments
Open

Best way to set up authentication #11

roborourke opened this issue Oct 31, 2016 · 8 comments

Comments

@roborourke
Copy link

Thanks for this container - I'd ideally use it within a docker-compose based network and not have it publicly facing at all but I'm testing out zeit.co's now tool and it only supports a single Dockerfile or package.json.

The simplest approach in my mind is to add some environment variables for a user & password that can be overridden on run/deploy. If set then we can enable auth with those details.

Is this something you'd want to support directly in this repo or are there other better approaches you can think of?

@mvertes
Copy link
Owner

mvertes commented Nov 1, 2016

Yes, authentication could be setup using environment variables and a procedure in the existing startup script run.sh. This is something I would gladly support.

@roborourke
Copy link
Author

Awesome! I can make a PR later this week unless you know how you'd do it already.

@mvertes
Copy link
Owner

mvertes commented Nov 1, 2016

Ok, please proceed. I do not have it ready.

@wupeaking
Copy link

Error relocating /usr/bin/mongod: pthread_setattr_default_np: symbol not found

@roborourke
Copy link
Author

@wupeaking I got that too but it's a separate issue to this one. You should
create a new issue and be more descriptive of the problem e.g. What were
you doing, what did your run & build commands look like etc

On Wed, 9 Nov 2016 at 09:35, wupeaking [email protected] wrote:

Error relocating /usr/bin/mongod: pthread_setattr_default_np: symbol not
found


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABbeQqIIrMO3PJ3giWyWhAUKTfBkIYYks5q8ZP1gaJpZM4KlmM3
.

@wupeaking
Copy link

@ShanikaEdiriweera
Copy link

Hi

I would like to know how to start this container with auth? Or how to setup auth after starting the container?

@lookat23
Copy link

@ShanikaEdiriweera you can try this
docker run -d --name mongo -p 27017:27017 mvertes/alpine-mongo /root/run.sh mongod --auth --bind_ip 0.0.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants