Skip to content

Instantly share code, notes, and snippets.

@hachi8833
Last active June 30, 2021 02:40
Show Gist options
  • Save hachi8833/f03b721abf015e7bef18dcdc404fb1f1 to your computer and use it in GitHub Desktop.
Save hachi8833/f03b721abf015e7bef18dcdc404fb1f1 to your computer and use it in GitHub Desktop.
RailsGoat向けのdip.yml
version: '7.0'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose.yml
interaction:
sh:
description: Open the app container bash shell
service: web
command: /bin/bash
compose_run_options: [no-deps]
bundle:
description: Run bundler command
service: web
command: bundle
compose_run_options: [no-deps]
rake:
description: Run rake command
service: web
command: bundle exec rake
rails:
description: Run rails command
service: web
command: bundle exec rails
subcommands:
s:
description: Start rails server
service: web
compose_run_options: [service-ports]
minitest:
description: Run minitest
service: web
environment:
RAILS_ENV: test
command: bundle exec rails test
mysql:
description: Run mysql console
service: mysql
command: mysql -h mysql -u root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment