Skip to content

Commit

Permalink
Add Docker-Compose config for development
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Schmidt committed Jul 8, 2017
1 parent 815b9e6 commit df2cd47
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
@@ -0,0 +1,8 @@
FROM ruby:2.3-slim
RUN apt-get update -qq && apt-get install -y build-essential nodejs nodejs-legacy npm libmysqlclient-dev libfontconfig1 libsqlite3-dev imagemagick
RUN npm install -g phantomjs-prebuilt
RUN gem install bundler --no-ri --no-rdoc

RUN mkdir /app
WORKDIR /app
ADD . /app
3 changes: 3 additions & 0 deletions bin/start
@@ -0,0 +1,3 @@
#!/bin/bash
bundle check || bundle install
bundle exec rails s -b 0.0.0.0
22 changes: 22 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,22 @@
version: '2'

volumes:
gems:
driver: local

services:
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: happyconferencing
web:
build: .
command: ./bin/start
volumes:
- .:/app
- gems:/usr/local/bundle
ports:
- "3000:3000"
tmpfs: /app/tmp
depends_on:
- db

0 comments on commit df2cd47

Please sign in to comment.