Skip to content

Instantly share code, notes, and snippets.

@danielnv18
Last active March 12, 2019 20:51
Show Gist options
  • Save danielnv18/218c0b5389bd3d4718bd29ef406ad2ad to your computer and use it in GitHub Desktop.
Save danielnv18/218c0b5389bd3d4718bd29ef406ad2ad to your computer and use it in GitHub Desktop.
Run ahoy with the wodby images for drupal
ahoyapi: v2
commands:
ps:
cmd: docker-compose ps "$@"
usage: List containers.
start:
cmd: docker-compose start "$@"
usage: Start services.
stop:
cmd: docker-compose stop "$@"
usage: Stop services.
restart:
cmd: docker-compose restart "$@"
usage: Restart services.
up:
cmd: docker-compose up -d "$@"
usage: Create and start containers.
down:
cmd: docker-compose down "$@"
usage: Stop and remove containers, networks, images, and volumes.
composer:
cmd: docker-compose exec --user=wodby php composer "$@"
usage: Run Composer commands in the php service container.
drupal:
cmd: docker-compose exec --user=wodby php vendor/bin/drupal "$@"
usage: Run Drupal Console commands in the php service container.
drush:
cmd: docker-compose exec --user=wodby php vendor/bin/drush "$@"
usage: Run Drush commands in the php service container.
blt:
cmd: docker-compose exec --user=wodby php vendor/bin/blt "$@"
usage: Run BLT commands in the php service container.
bash:
cmd: docker-compose exec --user=wodby php bash
usage: Run bash into php service container.
logs:
cmd: docker-compose logs -f "$@"
usage: Show logs
destroy:
cmd: docker-compose down -v
usage: Stop and remove containers, networks, images, and destroy volumes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment