docker-compose-types 0.24.0

Deserialization and Serialization of docker-compose.yml files in a relatively strongly typed fashion.
Documentation
version: '3.5'
services:
  foo:
    image: alpine:3.10.1
    command: /bin/true
    deploy:
      replicas: 3
      restart_policy:
        condition: any
        max_attempts: 7
      resources:
        limits:
          memory: 300M
          cpus: '0.7'
        reservations:
          memory: 100M
    volumes:
      - foo:/bar
    networks:
      - bar

volumes:
  foo:
    driver: default

networks:
  bar:
    attachable: true