services:
  readability-js-server:
    image: phpdockerio/readability-js-server:latest
    ports:
      - "3000:3000"
    healthcheck:
      test:
        [
          "CMD",
          "node",
          "-e",
          "fetch('http://127.0.0.1:3000/healthz').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1));",
        ]
      interval: 10s
      timeout: 3s
      retries: 3
      start_period: 5s
    # Uncomment and set any of the following environment variables to override defaults:
    # environment:
    #   PORT: 3000
    #   REQUEST_BODY_LIMIT: 16kb
    #   FETCH_TIMEOUT_MS: 10000
    #   FETCH_MAX_BYTES: 5242880
    #   FETCH_MAX_REDIRECTS: 5
    #   BLOCK_PRIVATE_NETWORKS: "true"
    #   READABILITY_MAX_ELEMS: ""
    #   MAX_CONCURRENT_REQUESTS: 10
