Created
October 26, 2015 02:26
-
-
Save getjump/4a6202f39a956f849390 to your computer and use it in GitHub Desktop.
Docker Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
image: postgres | |
ports: | |
- "5432" | |
web: | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/myapp | |
ports: | |
- "3000:3000" | |
links: | |
- db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.2.0 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev | |
RUN mkdir /myapp | |
WORKDIR /myapp | |
ADD Gemfile /myapp/Gemfile | |
RUN bundle install | |
ADD . /myapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment