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.
Localstack with docker swarm
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment