This repository has been archived on 2026-06-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-02-16 21:17:22 +01:00

43 lines
818 B
Go

package main
import (
"context"
"log"
"github.com/compose-spec/compose-go/v2/cli"
)
func main() {
load()
}
func load() {
composeFilePath := "compose.yml"
projectName := "teleport"
ctx := context.Background()
options, err := cli.NewProjectOptions(
[]string{composeFilePath},
cli.WithOsEnv,
cli.WithDotEnv,
cli.WithEnvFile(".env"),
cli.WithName(projectName),
)
if err != nil {
log.Fatal(err)
}
// NOTE(d1): standard custom-html compose.yml
options.Environment["STACK_NAME"] = "foo"
options.Environment["NGINX_DEFAULT_CONF_VERSION"] = "foo"
options.Environment["DOMAIN"] = "foo"
options.Environment["EXTRA_DOMAINS"] = "foo"
options.Environment["LETS_ENCRYPT_ENV"] = "foo"
options.Environment["DOMAIN"] = "foo"
_, err = options.LoadProject(ctx)
if err != nil {
log.Fatal(err)
}
}