1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# SPDX-License-Identifier: PMPL-1.0-or-later
#
# {{PROJECT_NAME}} selur-compose configuration
#
# Orchestrates the container stack as verified container bundles (.ctp).
# Uses selur zero-copy IPC between services on the same host.
#
# Usage:
# selur-compose up # Start all services
# selur-compose up --detach # Start in background
# selur-compose verify # Verify all .ctp signatures
# selur-compose ps # Check status
# selur-compose logs -f {{SERVICE_NAME}} # Stream logs
# selur-compose down # Stop all services
#
# Fallback (when selur is not installed):
# podman compose --file compose.toml up --detach
= "1.0"
# ============================================================================
# Services
# ============================================================================
# Primary application service
[{{SERVICE_NAME}}]
= "{{REGISTRY}}/{{SERVICE_NAME}}:latest.ctp"
= ["{{PORT}}:{{PORT}}"]
= {
APP_HOST = "[::]",
= "{{PORT}}",
= "json",
= "/data",
}
= ["{{SERVICE_NAME}}-data:/data"]
= "always"
= { = "curl -sf http://localhost:{{PORT}}/health", = "30s", = "5s", = 3 }
# Svalinn edge gateway: validates requests, enforces policies, TLS termination
[]
= "ghcr.io/hyperpolymath/svalinn:latest.ctp"
= ["443:443", "80:80"]
= {
SVALINN_BACKEND = "http://{{SERVICE_NAME}}:{{PORT}}",
= "/etc/svalinn/gatekeeper.yaml",
= "true",
}
= ["svalinn-config:/etc/svalinn:ro"]
= ["{{SERVICE_NAME}}"]
= "always"
= { = "curl -sf http://localhost:80/health", = "30s", = "5s", = 3 }
# ============================================================================
# Volumes
# ============================================================================
[{{SERVICE_NAME}}-data]
= "local"
[]
= "local"
# ============================================================================
# Networks
# ============================================================================
# Use selur zero-copy IPC for inter-service communication on the same host.
# Falls back to standard bridge networking when selur driver is unavailable.
[]
= "selur"