I have a multi-container (docker compose) application. I would like to scale it offline on AWS Batch for processing large volumes of data on S3. My .yml file for docker compose looks something like this:
version: '2'
services:
container1:
container_name:
image:
ports:
container2:
container_name:
image:
depends_on: container1
ports:
I, unfortunately, cannot find any examples or tutorials online dealing with such a case. Can anyone help me understand how should I approach this problem?
Date: 11-06-2018:
Currently, it is not possible, if it is a multi-container docker compose, you can't. There's no option for a docker-compose up instruction, just a single docker image is allowed. The definition would be like next:
In fact in the official docs is specified
container
as the only valid value for type:For individual containers there's a cli tool to transform docker-compose to a job definition but actually, that's something you can do manually: