Docker install: is it possible to access to postgresql and redis


Hello, I’m using sentry on a vos since 2 months. It’s quite interesting but I would like to do some custom queries that are impossible to do from GUI. So is it possible to connect to postgresql or redis from docker installation?
Thanks for help