Skip to content

Instantly share code, notes, and snippets.

View clalimarmo's full-sized avatar

Carlos Lalimarmo clalimarmo

View GitHub Profile
@clalimarmo
clalimarmo / docker-compose.yml
Created September 9, 2015 02:27
Rails development environment with Docker (step 2 - postgres)
web:
build: ./
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
ports:
- "3000:3000"
links:
- db
db:
@clalimarmo
clalimarmo / docker-compose.yml
Created September 9, 2015 02:08
Rails development environment with Docker (step 1)
web:
build: ./
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
ports:
- "3000:3000"
@clalimarmo
clalimarmo / Dockerfile
Last active September 9, 2015 15:17
Rails development environment with Docker, Dockerfile
FROM ruby:2.2.3
RUN \
apt-get update -qq && \
apt-get install -y build-essential
RUN mkdir app
WORKDIR app
COPY Gemfile ./
RUN bundle install