LocalStack GitHub actions in self hosted linux not able to access localhost:4566

In git hub actions I try to start local stack in services , its spin up but I am not able to access http://localhost:4566 even netstat not showing port number 4566 I am getting connection refused error .

services:
      localstack:
        image: localstack/localstack:latest
        env:
          SERVICES: cloudformation,iam,sts,ssm,s3,cloudwatch,cloudwatch-logs,lambda,sns,dynamodb,apigateway
          DEFAULT_REGION: eu-west-1
          AWS_ACCESS_KEY_ID: localkey
          AWS_SECRET_ACCESS_KEY: localsecret
        ports:
          - 4566:4566
          - 4571:4571

Hi @greenmango,

Please follow the documentation mentioned on GitHub Actions | Docs (localstack.cloud).