/compose

Docker Compose Mashaller for Golang

Primary LanguageGoGNU General Public License v2.0GPL-2.0

Compose

A go library for parsing Docker Compose yaml files into go structs.

Usage

import "github.com/previousnext/compose"

file := "path/to.yml"
dc := compose.Load(file)

// Get the image for service "app"
fmt.Println(dc.Services["app"].Image)