Is there a way to specify sticky sessions for EC2 TargetGroups in a docker-compose file?

53 Views Asked by At

I am able to create and deploy a target group with "replicas: 3" using "docker compose up" from a YAML file, and I am able to make the TargetGroup sticky using the console using the recipe found here but have not been able to find a way to specify in the YAML that the group should be created sticky. Based on fragments found on line, I have tried adding "x-aws-target-group-sticky: true" in the ports section for the service, and adding a "targetgroupattributes" section with Key: stickiness.enabled, Value: true. The former seems to have no effect, the latter offended docker compose so much that it refused to speak to me again until I rebooted my (Windows) machine. Is there supposed to be a way to set this up?

0

There are 0 best solutions below