Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ruby:2.5.8-slim-buster

RUN apt-get update \
&& apt-get install -y \
nodejs npm

RUN npm install -g yarn
RUN gem install rails
RUN gem install bundler

RUN mkdir /app
COPY . /app
WORKDIR /app

RUN yarn
RUN bundle install

ENTRYPOINT ["foreman", "start"]
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.7'
ruby '2.5.8'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
Expand Down
2 changes: 1 addition & 1 deletion config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ development:
# Provides the hosts the default client can connect to. Must be an array
# of host:port pairs. (required)
hosts:
- localhost:27017
- 192.168.1.238:27017
options:
safe: true
# Note that all options listed below are Ruby driver client options (the mongo gem).
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.6'

services:
db:
image: mongo:latest
volumes:
- /data/db:/data/db
app:
image: bedpost/bedpost:latest
ports:
- 3000:3000
links:
- db