Docker Compose Automated install of Sentry On Prem Container

I am Using Docker Compose to automate the Sentry Installation as a Docker Container and I need to pass the prompt yes to create Super user and pass email, Password and Confirm same password during running the docker-compose run --rm web upgrade command.

Note: I dont have the option of passing Input as i am trying to automate this particular process.

Would you like to create a user account now? [Y/n]: y
**Email: **
Password:
Repeat for confirmation:
Should this user be a superuser? [y/N]: y

All the above mentioned inputs need to be automated via Docker compose web upgrade command.

You can set the environment variable CI=1 which would skip this step (would not create the user automatically) so you’d run this step yourself after the ./install.sh script. This is what we do for our tests: https://github.com/getsentry/sentry/blob/master/docker/cloudbuild.yaml#L23-L42