Jackson/YAML: Parse key-value into class

I my input yaml file, I have the following:

services:
  postgresql:
    image: "postgres:10"
  redis:
    image: "redis:4"

It’s easy to parse services field into a Map<String, Service>:

public class DockerCompose {
    public static class Service {
        private String image;
    }

    private Map<String, Service> services;
}

I would like to parse the services field in a List<Service> with the name in the field name in Service as following:

public class DockerCompose {
    public static class Service {
        private String name;
        private String image;
    }

    private List<Service> services;
}

Is this possible?