Flattens YAML files to make them greppable
$ yq docker-compose.yml
version 3.3
services.redis.image redis:latest
services.redis.deploy.replicas 1
services.redis.ports.0.published 6379
services.redis.ports.0.target 6379
services.redis.ports.0.mode host
services.redis.volumes.0 redis-data:/data
services.elasticsearch.image docker.elastic.co/elasticsearch/elasticsearch:5.5.0
services.elasticsearch.deploy.replicas 1
services.elasticsearch.environment.0 discovery.type=single-node
services.elasticsearch.environment.1 xpack.security.enabled=false
services.elasticsearch.ports.0.published 9200
services.elasticsearch.ports.0.target 9200
services.elasticsearch.ports.0.mode host
services.elasticsearch.ports.1.published 9300
services.elasticsearch.ports.1.target 9300
services.elasticsearch.ports.1.mode host
services.elasticsearch.volumes.0 elasticsearch-data:/usr/share/elasticsearch/data
services.mariadb.image mariadb:5.5
services.mariadb.command mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
services.mariadb.deploy.replicas 1
services.mariadb.environment.0 MYSQL_ALLOW_EMPTY_PASSWORD=yes
services.mariadb.environment.1 MYSQL_ROOT_HOST=%
services.mariadb.environment.2 MYSQL_DATABASE=default
services.mariadb.ports.0.published 3306
services.mariadb.ports.0.target 3306
services.mariadb.ports.0.mode host
services.mariadb.volumes.0 mariadb-data:/var/lib/mysql
volumes.redis-data nil
volumes.elasticsearch-data nil
volumes.mariadb-data nil