Created
February 23, 2016 20:03
-
-
Save cbankston/bec48878e3a24a1b3efd to your computer and use it in GitHub Desktop.
Ruby Docker Project
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
RDS_HOSTNAME=db | |
RDS_USERNAME=root | |
RDS_PASSWORD=some_password |
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: mysql | |
env_file: | |
- '.env.db' | |
web: | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/myapp | |
ports: | |
- "3000:3000" | |
links: | |
- db | |
env_file: | |
- '.env.web' |
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.1.3 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev cmake nodejs | |
RUN mkdir /myapp | |
WORKDIR /myapp | |
ADD . /myapp/ | |
RUN bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment