Manual backup for gitlab on docker

so i’ve installed gitlab omnibus on docker, with postgres, redis, prometheus and grafana as separate services running in their own container. i clearly didn’t read carefully enough, as i have installed postgres 10.1, without realising it would break the rake task that performs the backup. so my question is;
how can i perform the same backup manually using postgres commands instead of the rake task?