Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker-Compose config for development
- Loading branch information
Hernán Schmidt
committed
Jul 8, 2017
1 parent
815b9e6
commit df2cd47
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
bundle check || bundle install | ||
bundle exec rails s -b 0.0.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |