Skip to content

Docker mongodb can not connect #180

Closed

Description

@brokolja

This is my dockerfile:

FROM ubuntu:latest

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list

RUN apt-get update
RUN apt-get install mongodb-10gen

RUN mkdir -p /data/db

EXPOSE 27017 28017
CMD ["usr/bin/mongod", "--smallfiles"]

The deployment works but i cant connect to the running mongodb instance from my local machine. Port 28017 is also not reachable.

Testing deployment: https://mongodb-cmjcuzszqz.now.sh/

Thank you very much.

Activity

  1. leo commented on Dec 20, 2016

    @leo
    Contributor

    You shouldn't deploy database services on now. It's only made for applications at the moment. Please use a service like mLab!

  2. brokolja commented on Dec 20, 2016

    @brokolja
    Author

    Do you have plans for supporting dbs in future?

  3. leo commented on Dec 20, 2016

    @leo
    Contributor

    @koljakutschera No. We want to do one thing, but right 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions