here is an example,
https://github.com/visualex/docker-boilerplate-nginx-apache-...
not using FPM but Apache, but you can see how nginx fits into the picture,
you would be doing something like a
fastcgi_pass testsite:9000;
using the names in the referenced repo.