Skip to content

Commit

Permalink
refs #22 enable mongo auth, two new env vars RAILS_ENV and MONGOLAB_U…
Browse files Browse the repository at this point in the history
…RI for production
  • Loading branch information
tongwang committed Oct 28, 2016
1 parent 52cd4bc commit 723d55f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mongodb:
image: mongo:2.4
volumes:
- /Users/twan/data/db:/data/db

scribe:
build: .
links:
- mongodb:mongodb
ports:
- 80:80
environment:
- DEVISE_SECRET_TOKEN
- SECRET_KEY_BASE_TOKEN
- GOOGLE_ID
- GOOGLE_SECRET
volumes:
- /Users/twan/loc-scribeAPI/project:/src/project
- /Users/twan/loc-scribeAPI/lib:/src/lib
- /Users/twan/loc-scribeAPI/app:/src/app
- /Users/twan/loc-scribeAPI/config:/src/config
19 changes: 19 additions & 0 deletions docker-compose-ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
mongodb:
image: mongo:2.4
volumes:
- /home/ec2-user/data/db:/data/db
command: mongod --auth

scribe:
image: tongwang/scribeapi_loc:latest
links:
- mongodb:mongodb
ports:
- 80:80
environment:
- RAILS_ENV
- MONGOLAB_URI
- DEVISE_SECRET_TOKEN
- SECRET_KEY_BASE_TOKEN
- GOOGLE_ID
- GOOGLE_SECRET

0 comments on commit 723d55f

Please sign in to comment.