* Adds optional support for Docker/Compose * Upgrades Dockerfile to use a multi-stage build * Gets rest of stack running in Docker * Renames queue to jobs, uses jobs namespace command * Reverts file * Adds webpacker * Fixes yarn check issue * Adds Database URL default connection string * Remove daemons gem * Update huskyhook config * Update seed.rb * Create .dockerignore * Increase RackTimeout's config * Simplify Docker config * Update README * Remove postgres url default * Change docker entry point to 3000 * Remove duped integrity setting
29 lines
619 B
YAML
29 lines
619 B
YAML
version: "3"
|
|
services:
|
|
web: &rails_base
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
RAILS_ENV: development
|
|
DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres
|
|
YARN_INTEGRITY_ENABLED: "false"
|
|
volumes:
|
|
- .:/usr/src/app
|
|
command: bundle exec rails server -b 0.0.0.0 -p 3000
|
|
jobs:
|
|
ports: []
|
|
<<: *rails_base
|
|
command: rails jobs:work
|
|
webpacker:
|
|
ports: []
|
|
<<: *rails_base
|
|
command: ./bin/webpack-dev-server
|
|
db:
|
|
image: postgres
|
|
ports:
|
|
- "5432:5432"
|