refactor: move the public host out to vantage-site and vantage-docs

site/ and sitesvc/ become web/ and server/ in vantage-site; docsite/
becomes the root of vantage-docs. Their images move with them, to
vantage/vantage-site/{web,server} and vantage/vantage-docs.

Nothing here imported any of them, and sitesvc turned out to read no
database at all, so both cuts are clean. docker-compose.site.yml is
deleted rather than emptied: every service it held now ships with the
repository that builds it, and deploy/docker/docker-compose.yml is once
again exactly a self-hosted install.

Corrects four comments that named sitesvc for work it no longer does.
This commit is contained in:
2026-09-08 08:41:11 +00:00
parent 872699c38c
commit f9dec9b230
98 changed files with 135 additions and 34383 deletions
+2 -2
View File
@@ -2,6 +2,6 @@ package models
import shared "gitea.hostxtra.co.uk/vantage/vantage-shared/models"
// Instance is defined in the shared module because sitesvc and the admin
// control plane write the same documents.
// Instance is defined in the shared module because the control plane and
// Vantage HQ write the same documents from separate repositories.
type Instance = shared.Instance
+1 -1
View File
@@ -25,7 +25,7 @@ func EnsureAuthIndexes() error {
defer cancel()
// users.email and instances.slug are declared in the shared module so the
// control plane and sitesvc cannot disagree about them.
// control plane and Vantage HQ cannot disagree about them.
if err := indexes.EnsureCoreIndexes(ctx, db.Database); err != nil {
return err
}
+3 -3
View File
@@ -101,9 +101,9 @@ func AdoptInstance(instanceID, name string) (*models.Instance, error) {
// CreateInstance creates an organisation and seeds its default workflow steps.
//
// The creation rules live in shared/provision because sitesvc creates
// organisations too. Seeding stays here: shared must not know about workflow
// steps.
// The creation rules live in shared/provision because Vantage HQ's cloudprov
// creates instances too, from another repository. Seeding stays here: shared
// must not know about workflow steps.
func CreateInstance(name string) (*models.Instance, error) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()