docs: document default portainer stack boundary

This commit is contained in:
lingniu
2026-07-01 09:38:25 +08:00
parent 74fbdd2b1a
commit 072fa00ea9
2 changed files with 16 additions and 0 deletions

View File

@@ -10,6 +10,20 @@ import static org.assertj.core.api.Assertions.assertThat;
class PortainerComposeResourceLimitsTest {
@Test
void portainerStackDocumentsDefaultProductionSurfaceOnly() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
assertThat(compose)
.contains("Default production stack: GB32960, JT808, Yutong MQTT, history, analytics.")
.contains("Legacy and optional services stay outside this compose file.")
.doesNotContain("\n xinda-push-app:\n")
.doesNotContain("\n command-gateway:\n")
.doesNotContain("\n vehicle-state-service:\n")
.doesNotContain("\n raw-archive-store:\n")
.doesNotContain("\n event-file-store:\n");
}
@Test
void productionServicesHaveOverridableMemoryLimits() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));