How can I push multiple containers, created with docker-compose, to a registry

HOW TO -️ October 18, 2021

I am using Jenkins pipeline and run a shell command to bring up my linked containers for testing. Once the testing is complete, I want to push the containers to a registry (I would prefer AWS ERC, but at this point I will take any working examples). What is the proper way to do this? Should each image go to a different repository? How can I get all of the containers created by the compose file pushed up? I have been attempting to get this done with the docker-compose push command, but I can't seem to get it working properly or find any decent examples.

Jenkinsfile

ERROR Rendering Code Block

docker-compose

ERROR Rendering Code Block

Answer

You should probably remove passwords from your question..

Initializing...