private void findServiceImageName(String serviceName, Map<String, ?> serviceDefinitionMap) {
        Object result = serviceDefinitionMap.get("image");
        if (result instanceof String) {
            final String imageName = (String) result;
            log.debug("Resolved dependency image for Docker Compose in {}: {}", composeFileName, imageName);
            serviceNameToImageNames.put(serviceName, Sets.newHashSet(imageName));
        }
    }
Representation of a docker-compose file, with partial parsing for validation and extraction of a minimal set of
data.
core/src/main/java/org/testcontainers/containers/ParsedDockerComposeFile.java