I glue the males to the pipes only, and use the female on the inside as the lock nut. Helps when lining up and fitting all the plumbing too, being able to stick the male threads in the container holes, before adding the females to lock them in place.
The o-ring goes on the outside with the male, because otherwise it would leak...there's no reason at all really to add another o ring inside. Just the one on the ouside seals everything. The fitting and pipe in the ouside are already glued so no worries there
And guys I wouldnt try it on a round bucket, unless you do like I do. Use parchment paper, a couple clothes irons without steam, and wood 4x4 post that fits in the bottom of the bucket to heat form and melt the round plastic by pressing the irons into both sides to create flat square areas for the bulkheads first.. look up my "how to flatten a round bucket" thread on IC for more info, lol. Or just use uniseals, thats why they made them, mostly for round containers..