generated from bisco/codex-bootstrap
fix: harden wordpress edge exposure
This commit is contained in:
@@ -42,6 +42,21 @@ services:
|
||||
- no-new-privileges:true
|
||||
pids_limit: 200
|
||||
|
||||
security-tests:
|
||||
image: wordpress:cli-2.12.0-php8.3
|
||||
init: true
|
||||
user: "33:33"
|
||||
command: ["/bin/sh", "/workspace/tests/security/check-compose.sh"]
|
||||
working_dir: /workspace
|
||||
volumes:
|
||||
- .:/workspace:ro
|
||||
profiles: ["test"]
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
pids_limit: 50
|
||||
|
||||
volumes:
|
||||
test_db_data:
|
||||
test_wordpress_data:
|
||||
|
||||
Reference in New Issue
Block a user