Skip to content

Instantly share code, notes, and snippets.

@hachi8833
Last active Jun 30, 2021
Embed
What would you like to do?
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