Automatically assigning Enterprise key on startup via docker

Hey guys, I’m currently trying to set up the Enterprise Edition (8.3.1) via docker-compose on an EC2 instance. Is there a way to insert the key via Dockerfile/docker-compose.yaml that will activate it on startup?

Hi @kyle.warrington ,

welcome to the community :wave:
i don’t think this is possible, but we have a API endpoint that could help you with that


so you could create a sidecar container running alpine (or something else) that just has a command to inject the license after sonarqube has come up

hope that helps

Thank you for the reply, I’ll have a look into it!