Although it’s possible to change and mount files/folders into existing Docker images the recommended approach is to create new custom Docker images.
Installing AMPs also requires the creation of a custom image, this guide describes the steps required to install AMP files into Alfresco Content Repository and Alfresco Share images. These custom images can then be deployed using docker-compose.
This process requires some familiarity with Docker and specifically Dockerfile commands.