service.go

17 lines
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package models

import "congo.gg/pkg/database"

// Service represents a deployed Docker container.
type Service struct {
	database.Model
	Name        string // Display name
	Slug        string // URL-safe name, container name = svc-{slug}
	RepoID      string // Source repository ID (optional)
	Image       string // Docker image name
	Status      string // building/running/stopped/failed
	Port        int    // Allocated host port (5001+)
	Env         string // JSON environment variables
	Domain      string // Assigned subdomain
	AutoRestart bool
}