Script directory for a PowerShell profile. https://blog.lksz.me/keeping-track-of-everything/#-mypsscriptroot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
370 B

  1. #[CmdletBinding(SupportsShouldProcess)]param()
  2. $local:dcParams = [string]::Empty
  3. if( $args ) {
  4. $dcParams = $args | ForEach-Object {
  5. if( $_ -match "(?:^'[^']+'$)|(?:^`"[^`"]+`"$)|(?:^[^\s]+$)" ) { $_ }
  6. else { "'$($_.Replace( "'", "''" ))'" }
  7. }
  8. }
  9. docker-compose up -d --remove-orphans $dcParams && docker-compose logs --follow --tail 10 $dcParams