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: **
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.