tasks:
  - name: Run Appwrite Docker Stack
    init: |
      git submodule update --init
      docker compose build
      docker compose pull
      docker pull composer
    command: |
      docker run --rm --interactive --tty \
      --volume $PWD:/app \
      composer install \
      --ignore-platform-reqs \
      --optimize-autoloader \
      --no-plugins \
      --no-scripts \
      --prefer-dist

ports:
  - port: 8080
    visibility: public

vscode:
  extensions:
    - ms-azuretools.vscode-docker
    - zobo.php-intellisense

github:
  # https://www.gitpod.io/docs/prebuilds#github-specific-configuration
  prebuilds:
    # enable for pull requests coming from forks (defaults to false)
    pullRequestsFromForks: true
    # add a check to pull requests (defaults to true)
    addCheck: false
