Skip to content

Reading time < 1 min

Deploying APIsec Scanner as a Docker Swarm Service

Please use the below Yaml file format for deploying the APIsec Scanner as a Docker Swarm Service. Make sure to update the placeholders <ScannerName>, <FX_IAM_VALUE>, and <FX_KEY_VALUE> with your specific values.

version: '3.5'
services:
  <ScannerName>:
    image: "apisec/scanner:latest"
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
      placement:
        constraints: [node.role == manager]
    environment:
      - FX_HOST=cloud.apisec.ai
      - FX_IAM=<FX_IAM_VALUE>
      - FX_KEY=<FX_KEY_VALUE>