Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
/ compose Public archive

Docker Compose Mashaller for Golang

License

Notifications You must be signed in to change notification settings

previousnext/compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)