Skip to content

Instantly share code, notes, and snippets.

@esirK
Created February 26, 2024 07:06
Show Gist options
  • Save esirK/66030960395695027d2fa815f913b0d7 to your computer and use it in GitHub Desktop.
Save esirK/66030960395695027d2fa815f913b0d7 to your computer and use it in GitHub Desktop.

Revisions

  1. esirK created this gist Feb 26, 2024.
    14 changes: 14 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    version: '3.7'

    services:
    localstack:
    image: localstack/localstack:3.0.2
    deploy:
    placement:
    constraints: [node.labels.localstack == true]
    # Exposing ports on will result into Internal Server Error ("Could not attach to network ingress: rpc error: code = PermissionDenied desc = network ingress not manually attachable")
    environment:
    # LocalStack configuration: https://docs.localstack.cloud/references/configuration/
    - DEBUG=${DEBUG:-0}
    volumes:
    - "/var/run/docker.sock:/var/run/docker.sock"