31 lines
566 B
Go
31 lines
566 B
Go
package config
|
|
|
|
import (
|
|
"text/template"
|
|
)
|
|
|
|
var Cfg Config = Config{
|
|
Name: "minecraft-server",
|
|
Version: "1.21.1",
|
|
Type: "VANILLA",
|
|
Ram: "2G",
|
|
MOTD: "This server was created using mc-tool",
|
|
RestartPolicy: "never",
|
|
Ports: []string{"25565:25565"},
|
|
}
|
|
var Data Resources
|
|
|
|
type Config struct {
|
|
Name string
|
|
Version string
|
|
Type string
|
|
Ram string
|
|
MOTD string
|
|
RestartPolicy string
|
|
Ports []string
|
|
}
|
|
|
|
type Resources struct {
|
|
DockerCompose *template.Template
|
|
}
|