version: '3'

services:
  web:
    deploy:
      resources:
        limits:
          cpus: "1"  # as opposed to 0.1 (default)
        reservations:
          cpus: "1"
    environment:
      - ERRORS=1
      - HIDE_NGINX_HEADERS=0
      - REMOVE_FILES=0
      - RUN_SCRIPTS=1
      - PHP_ERRORS_STDERR=1
      - ENABLE_XDEBUG=1