Hi, I think it would be better if this docker container supported running postgresql in a separate container and link them together. I don't know tryton that well, but this makes it possible to manage data independently from the application, and this is typically the best way to setup docker. For example a server could potentially reuse a postgresql database across multiple containers.
docker run --name postgresql -e ROOT_PASSWORD=foo -d postgresql
docker run --name tryton --link postgresql:db -d tryton