Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
54 lines (51 loc) · 1.4 KB
/
Copy pathcompose.yaml
File metadata and controls
54 lines (51 loc) · 1.4 KB
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
# SPDX-License-Identifier: MPL-2.0
# compose.yaml - K9 SVC Development Environment
#
# Usage:
# podman-compose up -d # Start development environment
# podman-compose run k9 dogfood # Run dogfood test
# podman-compose down # Stop environment
services:
k9:
build:
context: .
dockerfile: Containerfile
container_name: k9-svc
volumes:
# Mount local components for development
- ./components:/home/k9user/k9/components:ro
# Mount examples (read-only)
- ./examples:/home/k9user/k9/examples:ro
environment:
# Default to Yard level (safe)
K9_DEFAULT_LEASH: "'Yard"
# Enable verbose output
K9_VERBOSE: "true"
# Override entrypoint for interactive use
stdin_open: true
tty: true
# Validation service - runs in 'Yard mode only
validator:
build:
context: .
dockerfile: Containerfile
container_name: k9-validator
entrypoint: ["./must", "run", "validate-all"]
volumes:
- ./components:/home/k9user/k9/components:ro
environment:
K9_DEFAULT_LEASH: "'Yard"
read_only: true
security_opt:
- no-new-privileges:true
# Documentation generator
docs:
build:
context: .
dockerfile: Containerfile
container_name: k9-docs
entrypoint: ["./must", "run", "docs"]
volumes:
- ./docs:/home/k9user/k9/docs:rw
environment:
K9_DEFAULT_LEASH: "'Kennel"