fix readme and comments
This commit is contained in:
parent
276d034468
commit
b554387817
@ -55,10 +55,12 @@ ENV MONGO_LOG $HOME/.mongodb.log
|
|||||||
RUN mkdir $MONGO_DB
|
RUN mkdir $MONGO_DB
|
||||||
|
|
||||||
# launch mongo
|
# launch mongo
|
||||||
# this could be done as an entrypoint or whatever
|
# this just preps the database - it still needs to be launched inside the docker container
|
||||||
# RUN mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal
|
RUN mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal
|
||||||
|
|
||||||
# create a script for launching mongo
|
# create a script for launching mongo from the docker container
|
||||||
|
# this could go in .bashrc or something
|
||||||
|
# perhaps mongo should use the /data volume for its database?
|
||||||
RUN mkdir $HOME/bin
|
RUN mkdir $HOME/bin
|
||||||
RUN echo 'mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal' > $HOME/bin/mongod-start
|
RUN echo 'mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal' > $HOME/bin/mongod-start
|
||||||
RUN chmod +x $HOME/bin/mongod-start
|
RUN chmod +x $HOME/bin/mongod-start
|
||||||
|
11
README.md
11
README.md
@ -4,13 +4,10 @@ A docker container for developing mean stack applications
|
|||||||
Useage
|
Useage
|
||||||
######
|
######
|
||||||
|
|
||||||
Build the container with
|
Build the container with `sudo docker build -t 'tag name' .`
|
||||||
sudo docker build -t 'tag name' .
|
|
||||||
|
|
||||||
and run with
|
and run with `sudo ./docker-run`
|
||||||
sudo ./docker-run
|
|
||||||
|
|
||||||
The run script will attempt to mount a data volume from the host os from ~/docker/data.
|
The run script will attempt to mount a data volume from the host os from `~/docker/data`.
|
||||||
|
|
||||||
Finally, from the docker container, launch mongod with
|
Finally, from the docker container, launch mongod with `mongod-start`
|
||||||
mongod-start
|
|
Loading…
Reference in New Issue
Block a user