@tk You need the extensions in both container instances if you use alpine and fpm. They do not share installed extensions if it's separate containers.
Do you think you could share your current workspace? The best way to do that is to put the Dockerfiles/docker-compose.yml you are using into a git repo so I can have a quick look over it.