As of https://github.com/docker-library/postgres/pull/225 _FILE syntax is supported. It means docker-compose secrets support; it would be very nice to have it documented.