Skip to content

Commit

Permalink
docker maintenance
Browse files Browse the repository at this point in the history
 - added docker-compose.yml for quick one-command spinup
 - added docker-compose.dev.yml to override /habitrpg mount
 - modified Dockerfile to accept /habitrpg mount
  • Loading branch information
Matt Harrington committed Jan 11, 2016
1 parent 85c532f commit 67f184c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ RUN npm install -g gulp grunt-cli bower
# Clone Habitica repo and install dependencies
WORKDIR /habitrpg
RUN git clone https://github.com/HabitRPG/habitrpg.git /habitrpg
#RUN test -e /habitrpg || git clone https://github.com/HabitRPG/habitrpg.git /habitrpg
RUN npm install
RUN bower install --allow-root

# Create environment config file and build directory
RUN cp config.json.example config.json
#RUN test -e config.json || cp config.json.example config.json
RUN mkdir -p ./website/build

# Start Habitica
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
web:
volumes:
- '.:/habitrpg'
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
web:
build: .
ports:
- "3000:3000"
links:
- mongo
environment:
- NODE_DB_URI=mongodb://mongo/habitrpg

mongo:
image: mongo
ports:
- "27017:27017"

0 comments on commit 67f184c

Please sign in to comment.