-
-
Save joselo/fc67af8adaa7170e310c96d87f15342a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
default: &default | |
adapter: postgresql | |
encoding: unicode | |
pool: 5 | |
username: postgres | |
password: | |
host: db | |
development: | |
<<: *default | |
database: db_development | |
test: | |
<<: *default | |
database: db_test | |
production: | |
<<: *default | |
database: db_production |
This file contains hidden or 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
version: '2' | |
services: | |
web: | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
tty: true | |
stdin_open: true | |
volumes: | |
- .:/app | |
- ~/.ssh:/root/.ssh | |
volumes_from: | |
- box | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db | |
db: | |
image: postgres:9.5 | |
box: | |
image: busybox | |
volumes: | |
- /bundle |
This file contains hidden or 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.3 | |
RUN apt-get update -qq | |
RUN apt-get install -y -qq build-essential | |
RUN apt-get install -y -qq nodejs | |
RUN apt-get install -y -qq libpq-dev | |
ENV APP_HOME /app | |
ENV BUNDLE_PATH /bundle | |
ENV BUNDLE_JOBS 5 | |
RUN mkdir -p $APP_HOME | |
WORKDIR $APP_HOME | |
RUN gem install bundler --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment