refactor: replace deprecated docker-compose with docker compose across repository
This commit is contained in:
@@ -187,7 +187,7 @@ Phase 2 patterns to follow:
|
||||
1. Verify docker-compose.yml exists
|
||||
2. Verify no port bindings use 0.0.0.0 (violates INF-02)
|
||||
3. Verify private services use 127.0.0.1 binding (localhost only)
|
||||
4. Verify docker-compose config is valid YAML
|
||||
4. Verify docker compose config is valid YAML
|
||||
5. Verify no published ports for private-only services
|
||||
|
||||
Requirements:
|
||||
@@ -201,7 +201,7 @@ Phase 2 patterns to follow:
|
||||
- Check file exists: `[ -f labs/lab-02-network/docker-compose.yml ]`
|
||||
- Find port mappings: `grep -E "^\s*-\s*[0-9]+:" docker-compose.yml` or `grep -A 20 "ports:"`
|
||||
- Check for violations: `grep -E '0\.0\.0\.0:[0-9]+' docker-compose.yml` (should NOT find)
|
||||
- Validate YAML: `docker-compose -f docker-compose.yml config` (if file exists)
|
||||
- Validate YAML: `docker compose -f docker-compose.yml config` (if file exists)
|
||||
|
||||
Expected: 5 tests total (file exists, no 0.0.0.0 bindings, 127.0.0.1 bindings used, YAML valid, private services no ports)
|
||||
</action>
|
||||
|
||||
Reference in New Issue
Block a user