Need clarification on Docker conatainers

I want to run the PostgreSQL Database and GO Lang API With in a Single Docker Container.

Is it Possible ?

if possible , kindly explain me , how to do this?