Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nando Sousa committed Jan 4, 2021
1 parent 2ec80f7 commit 5cd86db
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.7.2

WORKDIR /code
COPY . .

RUN gem install bundler
RUN bundle install
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bash:
docker-compose run gem bash
specs:
docker-compose run gem bundle exec rspec
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
gem:
build: .
volumes:
- .:/code
environment:
- REDIS_URL=redis://redis:6379
depends_on:
- redis
redis:
image: redis:5.0.4-alpine
command: redis-server --save "" --appendonly yes --appendfsync everysec
ports:
- 6379:6379
volumes:
- redis-data:/data
volumes:
redis-data:

0 comments on commit 5cd86db

Please sign in to comment.