Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose #121

Merged
merged 5 commits into from
Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
ENHANCE: Update rails app without restarting Docker container
  • Loading branch information
ohtake committed Nov 16, 2018
commit c0e80931940ddd0ae53350535e1398a08c17ec67
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ ENV PATH /tmp/texlive/bin/x86_64-linux:$PATH
COPY Gemfile Gemfile.lock /doubtfire-api/
RUN bundle install --without production replica

# To rebuild Docker image faster, copy application code after installing TeX and Ruby gems
COPY . /doubtfire-api

CMD bundle exec rails s

EXPOSE 3000
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ services:
build: .
ports:
- "3000:3000"
volumes:
- ./:/doubtfire-api
- /doubtfire-api/.bundle
- /doubtfire-api/tmp
links:
- web
depends_on:
Expand Down