Skip to content
Merged
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
34 changes: 34 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '3.7'

services:
web:
build: .
volumes: &web-volumes
- &app-volume .:/app:cached
- ~/.ssh:/root/.ssh
- ~/.bash_history:/root/.bash_history
- &bundle-cache-volume bundle_cache:/bundle_cache
ports:
- 3000:3000
- 3001:3001
- 3002:3002
depends_on:
- db
environment: &web-environment
BUNDLE_PATH: /bundle_cache
GEM_HOME: /bundle_cache
GEM_PATH: /bundle_cache
RAILS_PORT: 3000
RUBYOPT: -W:no-deprecated -W:no-experimental
command: bundle exec rails s -b '0.0.0.0' -p 3000

db:
image: postgres:11.4
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

volumes:
bundle_cache: