Skip to content

Commit

Permalink
Use a volume to deal with bundled gems
Browse files Browse the repository at this point in the history
This way we don't need to rebuild everytime we add/update/remove a gem
  • Loading branch information
brunoocasali committed Oct 7, 2020
1 parent 2cd6d56 commit e2d92a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
version: '3'

volumes:
bundle:
driver: local

services:
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: uaI7m2kmWd949DMv4dCh

web:
environment:
PGPASSWORD: uaI7m2kmWd949DMv4dCh
Expand All @@ -13,6 +19,7 @@ services:
volumes:
- .:/refugerestrooms
- /refugerestrooms/node_modules
- bundle:/usr/local/bundle
ports:
- "3000:3000"
depends_on:
Expand Down

0 comments on commit e2d92a2

Please sign in to comment.