decodingtrust-agent-sdk 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent/__init__.py +30 -0
- agent/claudesdk/__init__.py +8 -0
- agent/claudesdk/example.py +221 -0
- agent/claudesdk/src/__init__.py +8 -0
- agent/claudesdk/src/agent.py +400 -0
- agent/claudesdk/src/mcp_proxy.py +409 -0
- agent/claudesdk/src/utils.py +420 -0
- agent/googleadk/__init__.py +15 -0
- agent/googleadk/example.py +237 -0
- agent/googleadk/src/__init__.py +12 -0
- agent/googleadk/src/agent.py +401 -0
- agent/googleadk/src/mcp_wrapper.py +163 -0
- agent/googleadk/src/utils.py +602 -0
- agent/langchain/__init__.py +8 -0
- agent/langchain/example.py +213 -0
- agent/langchain/src/__init__.py +8 -0
- agent/langchain/src/agent.py +645 -0
- agent/langchain/src/utils.py +433 -0
- agent/openaisdk/__init__.py +17 -0
- agent/openaisdk/example.py +228 -0
- agent/openaisdk/src/__init__.py +12 -0
- agent/openaisdk/src/agent.py +491 -0
- agent/openaisdk/src/agent_wrapper.py +143 -0
- agent/openaisdk/src/mcp_wrapper.py +395 -0
- agent/openaisdk/src/utils.py +493 -0
- agent/openclaw/__init__.py +10 -0
- agent/openclaw/example.py +251 -0
- agent/openclaw/src/__init__.py +14 -0
- agent/openclaw/src/agent.py +930 -0
- agent/openclaw/src/helpers/__init__.py +1 -0
- agent/openclaw/src/helpers/auth_helpers.py +55 -0
- agent/openclaw/src/mcp_proxy.py +564 -0
- agent/openclaw/src/plugin_generator.py +231 -0
- agent/openclaw/src/utils.py +341 -0
- agent/pocketflow/__init__.py +18 -0
- agent/pocketflow/example.py +221 -0
- agent/pocketflow/prompts/react_agent.py +46 -0
- agent/pocketflow/src/__init__.py +6 -0
- agent/pocketflow/src/agent.py +507 -0
- agent/pocketflow/src/agent_wrapper.py +159 -0
- agent/pocketflow/src/async_helper.py +92 -0
- agent/pocketflow/src/mcp_react_agent.py +279 -0
- agent/pocketflow/src/native_agent.py +74 -0
- agent/pocketflow/src/nodes.py +467 -0
- benchmark/__init__.py +0 -0
- benchmark/browser/benign.jsonl +34 -0
- benchmark/browser/direct.jsonl +85 -0
- benchmark/browser/indirect.jsonl +82 -0
- benchmark/code/benign.jsonl +0 -0
- benchmark/code/direct.jsonl +121 -0
- benchmark/code/indirect.jsonl +165 -0
- benchmark/crm/benign.jsonl +165 -0
- benchmark/crm/direct.jsonl +90 -0
- benchmark/crm/indirect.jsonl +150 -0
- benchmark/customer-service/benign.jsonl +160 -0
- benchmark/customer-service/direct.jsonl +100 -0
- benchmark/customer-service/indirect.jsonl +101 -0
- benchmark/finance/benign.jsonl +0 -0
- benchmark/finance/direct.jsonl +200 -0
- benchmark/finance/indirect.jsonl +200 -0
- benchmark/legal/benign.jsonl +0 -0
- benchmark/legal/direct.jsonl +200 -0
- benchmark/legal/indirect.jsonl +200 -0
- benchmark/macos/benign.jsonl +30 -0
- benchmark/macos/direct.jsonl +50 -0
- benchmark/macos/indirect.jsonl +50 -0
- benchmark/medical/benign.jsonl +642 -0
- benchmark/medical/direct.jsonl +229 -0
- benchmark/medical/indirect.jsonl +222 -0
- benchmark/os-filesystem/benign.jsonl +200 -0
- benchmark/os-filesystem/direct.jsonl +200 -0
- benchmark/os-filesystem/indirect.jsonl +200 -0
- benchmark/research/benign.jsonl +0 -0
- benchmark/research/direct.jsonl +119 -0
- benchmark/research/indirect.jsonl +125 -0
- benchmark/telecom/benign.jsonl +120 -0
- benchmark/telecom/direct.jsonl +161 -0
- benchmark/telecom/indirect.jsonl +166 -0
- benchmark/travel/benign.jsonl +130 -0
- benchmark/travel/direct.jsonl +105 -0
- benchmark/travel/indirect.jsonl +120 -0
- benchmark/windows/benign.jsonl +100 -0
- benchmark/windows/direct.jsonl +140 -0
- benchmark/windows/indirect.jsonl +107 -0
- benchmark/workflow/benign.jsonl +335 -0
- benchmark/workflow/direct.jsonl +78 -0
- benchmark/workflow/indirect.jsonl +107 -0
- cli/__init__.py +5 -0
- cli/main.py +182 -0
- cli/scaffold.py +334 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/METADATA +642 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/RECORD +374 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/WHEEL +5 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/entry_points.txt +2 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/licenses/LICENSE +201 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/top_level.txt +6 -0
- dt_arena/config/env.yaml +515 -0
- dt_arena/config/injection_mcp.yaml +430 -0
- dt_arena/config/mcp.yaml +642 -0
- dt_arena/envs/arxiv/docker-compose-hub.yml +31 -0
- dt_arena/envs/arxiv/docker-compose.yml +36 -0
- dt_arena/envs/atlassian/docker/docker-compose.dev.yml +65 -0
- dt_arena/envs/atlassian/docker/docker-compose.yml +53 -0
- dt_arena/envs/atlassian/docker-compose-hub.yml +57 -0
- dt_arena/envs/atlassian/docker-compose.yml +72 -0
- dt_arena/envs/bigquery/docker-compose.yml +20 -0
- dt_arena/envs/booking/docker-compose.yml +59 -0
- dt_arena/envs/calendar/docker-compose-hub.yml +30 -0
- dt_arena/envs/calendar/docker-compose.yml +42 -0
- dt_arena/envs/custom-website/docker-compose.yml +6 -0
- dt_arena/envs/customer_service/docker-compose.yml +59 -0
- dt_arena/envs/databricks/docker-compose-hub.yml +47 -0
- dt_arena/envs/databricks/docker-compose.yml +51 -0
- dt_arena/envs/ecommerce/docker-compose.yml +6 -0
- dt_arena/envs/ers/docker-compose.yml +36 -0
- dt_arena/envs/ers/hrms/docker/docker-compose.yml +31 -0
- dt_arena/envs/finance/docker-compose.yml +23 -0
- dt_arena/envs/github/docker/docker-compose-hub.yml +50 -0
- dt_arena/envs/github/docker/docker-compose.yml +50 -0
- dt_arena/envs/gmail/docker-compose-hub.yml +51 -0
- dt_arena/envs/gmail/docker-compose.yml +65 -0
- dt_arena/envs/google-form/docker-compose-hub.yml +33 -0
- dt_arena/envs/google-form/docker-compose.yml +41 -0
- dt_arena/envs/googledocs/docker-compose-hub.yml +61 -0
- dt_arena/envs/googledocs/docker-compose.yml +78 -0
- dt_arena/envs/hospital/docker-compose-hub.yml +25 -0
- dt_arena/envs/hospital/docker-compose.yml +27 -0
- dt_arena/envs/legal/docker-compose.yml +22 -0
- dt_arena/envs/linkedin/docker-compose.yml +63 -0
- dt_arena/envs/macos/docker-compose.yml +79 -0
- dt_arena/envs/os-filesystem/docker-compose-hub.yml +16 -0
- dt_arena/envs/os-filesystem/docker-compose.yml +20 -0
- dt_arena/envs/paypal/docker-compose-hub.yml +48 -0
- dt_arena/envs/paypal/docker-compose.yml +63 -0
- dt_arena/envs/research/docker-compose-hub.yml +13 -0
- dt_arena/envs/research/docker-compose.yml +24 -0
- dt_arena/envs/salesforce_crm/docker-compose-hub.yaml +45 -0
- dt_arena/envs/salesforce_crm/docker-compose.yaml +49 -0
- dt_arena/envs/slack/docker-compose-hub.yml +28 -0
- dt_arena/envs/slack/docker-compose.yml +41 -0
- dt_arena/envs/snowflake/docker-compose-hub.yml +41 -0
- dt_arena/envs/snowflake/docker-compose.yml +44 -0
- dt_arena/envs/telecom/docker-compose-hub.yml +16 -0
- dt_arena/envs/telecom/docker-compose.yml +17 -0
- dt_arena/envs/telegram/docker-compose-hub.yml +57 -0
- dt_arena/envs/telegram/docker-compose.yml +62 -0
- dt_arena/envs/terminal/docker-compose-hub.yml +12 -0
- dt_arena/envs/terminal/docker-compose.yml +26 -0
- dt_arena/envs/travel/docker-compose-hub.yml +19 -0
- dt_arena/envs/travel/docker-compose.yml +19 -0
- dt_arena/envs/whatsapp/docker-compose-hub.yml +61 -0
- dt_arena/envs/whatsapp/docker-compose.yml +78 -0
- dt_arena/envs/windows/docker-compose.yml +71 -0
- dt_arena/envs/zoom/docker-compose-hub.yml +27 -0
- dt_arena/envs/zoom/docker-compose.yml +40 -0
- dt_arena/injection_mcp_server/atlassian/env_injection.py +134 -0
- dt_arena/injection_mcp_server/calendar/env_injection.py +217 -0
- dt_arena/injection_mcp_server/custom_website/env_injection.py +97 -0
- dt_arena/injection_mcp_server/customer_service/env_injection.py +659 -0
- dt_arena/injection_mcp_server/databricks/env_injection.py +255 -0
- dt_arena/injection_mcp_server/ecommerce/env_injection.py +110 -0
- dt_arena/injection_mcp_server/finance/env_injection.py +85 -0
- dt_arena/injection_mcp_server/github/env_injection.py +206 -0
- dt_arena/injection_mcp_server/gmail/env_injection.py +211 -0
- dt_arena/injection_mcp_server/google_form/env_injection.py +186 -0
- dt_arena/injection_mcp_server/googledocs/env_injection.py +44 -0
- dt_arena/injection_mcp_server/hospital/env_injection.py +43 -0
- dt_arena/injection_mcp_server/legal/env_injection.py +229 -0
- dt_arena/injection_mcp_server/macos/env_injection.py +272 -0
- dt_arena/injection_mcp_server/os-filesystem/env_injection.py +341 -0
- dt_arena/injection_mcp_server/paypal/env_injection.py +268 -0
- dt_arena/injection_mcp_server/research/env_injection.py +616 -0
- dt_arena/injection_mcp_server/salesforce/env_injection.py +514 -0
- dt_arena/injection_mcp_server/slack/env_injection.py +265 -0
- dt_arena/injection_mcp_server/snowflake/env_injection.py +230 -0
- dt_arena/injection_mcp_server/telecom/env_injection.py +503 -0
- dt_arena/injection_mcp_server/telegram/env_injection.py +171 -0
- dt_arena/injection_mcp_server/terminal/env_injection.py +523 -0
- dt_arena/injection_mcp_server/travel/env_injection.py +173 -0
- dt_arena/injection_mcp_server/whatsapp/env_injection.py +185 -0
- dt_arena/injection_mcp_server/windows/env_injection.py +943 -0
- dt_arena/injection_mcp_server/zoom/env_injection.py +216 -0
- dt_arena/mcp_server/atlassian/main.py +1554 -0
- dt_arena/mcp_server/atlassian/test_server.py +66 -0
- dt_arena/mcp_server/bigquery/main.py +333 -0
- dt_arena/mcp_server/booking/main.py +310 -0
- dt_arena/mcp_server/browser/main.py +1741 -0
- dt_arena/mcp_server/calendar/example_multi_user.py +162 -0
- dt_arena/mcp_server/calendar/main.py +792 -0
- dt_arena/mcp_server/calendar/test_mcp.py +135 -0
- dt_arena/mcp_server/customer_service/main.py +1063 -0
- dt_arena/mcp_server/databricks/main.py +566 -0
- dt_arena/mcp_server/databricks/probe.py +102 -0
- dt_arena/mcp_server/ers/main.py +845 -0
- dt_arena/mcp_server/finance/__init__.py +87 -0
- dt_arena/mcp_server/finance/core/__init__.py +12 -0
- dt_arena/mcp_server/finance/core/data_loader.py +558 -0
- dt_arena/mcp_server/finance/core/portfolio.py +565 -0
- dt_arena/mcp_server/finance/evaluation/__init__.py +20 -0
- dt_arena/mcp_server/finance/evaluation/evaluator.py +217 -0
- dt_arena/mcp_server/finance/evaluation/logger.py +137 -0
- dt_arena/mcp_server/finance/injection/__init__.py +66 -0
- dt_arena/mcp_server/finance/injection/config.py +176 -0
- dt_arena/mcp_server/finance/injection/content.py +755 -0
- dt_arena/mcp_server/finance/injection/html.py +409 -0
- dt_arena/mcp_server/finance/injection/locations.py +167 -0
- dt_arena/mcp_server/finance/injection/methods.py +193 -0
- dt_arena/mcp_server/finance/injection/presets.py +1023 -0
- dt_arena/mcp_server/finance/main.py +361 -0
- dt_arena/mcp_server/finance/run_mcp.py +21 -0
- dt_arena/mcp_server/finance/run_web.py +26 -0
- dt_arena/mcp_server/finance/server/__init__.py +41 -0
- dt_arena/mcp_server/finance/server/extractor.py +1453 -0
- dt_arena/mcp_server/finance/server/extractor_minimal.py +292 -0
- dt_arena/mcp_server/finance/server/extractor_simple.py +1164 -0
- dt_arena/mcp_server/finance/server/injection_mcp.py +865 -0
- dt_arena/mcp_server/finance/server/mcp.py +451 -0
- dt_arena/mcp_server/finance/server/tools/__init__.py +23 -0
- dt_arena/mcp_server/finance/server/tools/account.py +88 -0
- dt_arena/mcp_server/finance/server/tools/browsing.py +328 -0
- dt_arena/mcp_server/finance/server/tools/social.py +73 -0
- dt_arena/mcp_server/finance/server/tools/trading.py +242 -0
- dt_arena/mcp_server/finance/server/tools/utility.py +49 -0
- dt_arena/mcp_server/finance/server/web.py +2139 -0
- dt_arena/mcp_server/finance/tasks/benchmark/__init__.py +28 -0
- dt_arena/mcp_server/finance/tasks/benchmark/attack_pool.py +3026 -0
- dt_arena/mcp_server/finance/tasks/benchmark/attack_runner.py +1315 -0
- dt_arena/mcp_server/finance/tasks/benchmark/finra_requirements.py +1335 -0
- dt_arena/mcp_server/finance/tasks/benchmark/finra_tasks.py +3665 -0
- dt_arena/mcp_server/finance/tasks/benchmark/malicious_tasks.py +2673 -0
- dt_arena/mcp_server/finance/tasks/redteam_suite/run_redteam_suite.py +1713 -0
- dt_arena/mcp_server/finance/test_mcp_tools.py +476 -0
- dt_arena/mcp_server/github/main.py +441 -0
- dt_arena/mcp_server/gmail/main.py +1004 -0
- dt_arena/mcp_server/google_form/main.py +141 -0
- dt_arena/mcp_server/googledocs/main.py +458 -0
- dt_arena/mcp_server/hospital/mcp_server.py +458 -0
- dt_arena/mcp_server/legal/__init__.py +9 -0
- dt_arena/mcp_server/legal/core/__init__.py +14 -0
- dt_arena/mcp_server/legal/core/courtlistener_store.py +762 -0
- dt_arena/mcp_server/legal/core/data_loader.py +266 -0
- dt_arena/mcp_server/legal/core/document_store.py +197 -0
- dt_arena/mcp_server/legal/core/matter_manager.py +466 -0
- dt_arena/mcp_server/legal/main.py +89 -0
- dt_arena/mcp_server/legal/scripts/collect_data.py +988 -0
- dt_arena/mcp_server/legal/server/__init__.py +14 -0
- dt_arena/mcp_server/legal/server/mcp.py +2330 -0
- dt_arena/mcp_server/macos/client_test.py +270 -0
- dt_arena/mcp_server/macos/mcp_server.py +285 -0
- dt_arena/mcp_server/os-filesystem/main.py +1380 -0
- dt_arena/mcp_server/paypal/main.py +501 -0
- dt_arena/mcp_server/research/main.py +777 -0
- dt_arena/mcp_server/salesforce/main.py +2006 -0
- dt_arena/mcp_server/slack/main.py +318 -0
- dt_arena/mcp_server/snowflake/main.py +612 -0
- dt_arena/mcp_server/snowflake/probe.py +183 -0
- dt_arena/mcp_server/telecom/mcp_client.py +423 -0
- dt_arena/mcp_server/telecom/mcp_server.py +1059 -0
- dt_arena/mcp_server/telegram/main.py +338 -0
- dt_arena/mcp_server/terminal/main.py +163 -0
- dt_arena/mcp_server/travel/client_test.py +16 -0
- dt_arena/mcp_server/travel/mcp_server.py +404 -0
- dt_arena/mcp_server/whatsapp/main.py +318 -0
- dt_arena/mcp_server/windows/client_test.py +270 -0
- dt_arena/mcp_server/windows/mcp_server.py +218 -0
- dt_arena/mcp_server/zoom/main.py +466 -0
- dt_arena/src/__init__.py +0 -0
- dt_arena/src/hooks/__init__.py +0 -0
- dt_arena/src/hooks/audit_log.py +30 -0
- dt_arena/src/hooks/hooks.json +3 -0
- dt_arena/src/run_benign.py +142 -0
- dt_arena/src/types/__init__.py +0 -0
- dt_arena/src/types/agent.py +441 -0
- dt_arena/src/types/attacks.py +2 -0
- dt_arena/src/types/environment.py +2 -0
- dt_arena/src/types/hooks.py +174 -0
- dt_arena/src/types/judge.py +52 -0
- dt_arena/src/types/red_teaming_trajectory.py +385 -0
- dt_arena/src/types/task.py +260 -0
- dt_arena/src/types/trajectory.py +315 -0
- dt_arena/utils/__init__.py +1 -0
- dt_arena/utils/atlassian/__init__.py +27 -0
- dt_arena/utils/atlassian/helpers.py +520 -0
- dt_arena/utils/bigquery/__init__.py +1 -0
- dt_arena/utils/bigquery/helpers.py +246 -0
- dt_arena/utils/calendar/__init__.py +1 -0
- dt_arena/utils/calendar/helpers.py +87 -0
- dt_arena/utils/customer_service/__init__.py +17 -0
- dt_arena/utils/customer_service/cs_env_client.py +940 -0
- dt_arena/utils/customer_service/helpers.py +339 -0
- dt_arena/utils/customer_service/judges/__init__.py +20 -0
- dt_arena/utils/customer_service/judges/abusive_comms.py +149 -0
- dt_arena/utils/customer_service/judges/bulk_destructive.py +202 -0
- dt_arena/utils/customer_service/judges/cross_customer.py +481 -0
- dt_arena/utils/customer_service/judges/email_exfiltration.py +320 -0
- dt_arena/utils/customer_service/judges/financial_fraud.py +221 -0
- dt_arena/utils/customer_service/judges/llm_utils.py +264 -0
- dt_arena/utils/customer_service/judges/pii_disclosure.py +837 -0
- dt_arena/utils/customer_service/judges/policy_misrep.py +44 -0
- dt_arena/utils/customer_service/judges/text_utils.py +21 -0
- dt_arena/utils/databricks/__init__.py +2 -0
- dt_arena/utils/databricks/helpers.py +210 -0
- dt_arena/utils/finance/__init__.py +0 -0
- dt_arena/utils/finance/helpers.py +263 -0
- dt_arena/utils/github/__init__.py +1 -0
- dt_arena/utils/github/helpers.py +249 -0
- dt_arena/utils/gmail/__init__.py +1 -0
- dt_arena/utils/gmail/helpers.py +344 -0
- dt_arena/utils/google_form/__init__.py +2 -0
- dt_arena/utils/google_form/helpers.py +133 -0
- dt_arena/utils/legal/__init__.py +0 -0
- dt_arena/utils/legal/helpers.py +228 -0
- dt_arena/utils/macos/__init__.py +0 -0
- dt_arena/utils/macos/env_setup.py +215 -0
- dt_arena/utils/macos/helpers.py +61 -0
- dt_arena/utils/os_filesystem/__init__.py +1 -0
- dt_arena/utils/os_filesystem/helpers.py +366 -0
- dt_arena/utils/paypal/__init__.py +1 -0
- dt_arena/utils/paypal/helpers.py +178 -0
- dt_arena/utils/port_allocator.py +266 -0
- dt_arena/utils/research/__init__.py +0 -0
- dt_arena/utils/research/helpers.py +251 -0
- dt_arena/utils/salesforce/__init__.py +1 -0
- dt_arena/utils/salesforce/helpers.py +719 -0
- dt_arena/utils/slack/__init__.py +1 -0
- dt_arena/utils/slack/helpers.py +176 -0
- dt_arena/utils/snowflake/__init__.py +1 -0
- dt_arena/utils/snowflake/helpers.py +166 -0
- dt_arena/utils/telecom/__init__.py +1 -0
- dt_arena/utils/telecom/helpers.py +760 -0
- dt_arena/utils/telegram/__init__.py +0 -0
- dt_arena/utils/telegram/helpers.py +174 -0
- dt_arena/utils/terminal/__init__.py +0 -0
- dt_arena/utils/terminal/helpers.py +20 -0
- dt_arena/utils/travel/__init__.py +0 -0
- dt_arena/utils/travel/env_client.py +537 -0
- dt_arena/utils/travel/llm_judge.py +137 -0
- dt_arena/utils/travel/prompts.py +64 -0
- dt_arena/utils/utils/__init__.py +122 -0
- dt_arena/utils/whatsapp/__init__.py +0 -0
- dt_arena/utils/whatsapp/helpers.py +226 -0
- dt_arena/utils/windows/__init__.py +0 -0
- dt_arena/utils/windows/env_reset.py +224 -0
- dt_arena/utils/windows/env_setup.py +280 -0
- dt_arena/utils/windows/exfil_helpers.py +170 -0
- dt_arena/utils/windows/helpers.py +74 -0
- dt_arena/utils/zoom/__init__.py +1 -0
- dt_arena/utils/zoom/helpers.py +70 -0
- eval/__init__.py +1 -0
- eval/evaluation.py +426 -0
- eval/task_runner.py +449 -0
- utils/__init__.py +148 -0
- utils/agent_helpers.py +308 -0
- utils/agent_wrapper.py +189 -0
- utils/compose_utils.py +135 -0
- utils/config.py +77 -0
- utils/env_helpers.py +104 -0
- utils/eval_stats.py +88 -0
- utils/injection_helpers.py +429 -0
- utils/injection_mcp_helpers.py +152 -0
- utils/judge_helpers.py +181 -0
- utils/judge_utils.py +472 -0
- utils/llm.py +196 -0
- utils/logging.py +45 -0
- utils/mcp_helpers.py +232 -0
- utils/mcp_manager.py +235 -0
- utils/memory_guard.py +18 -0
- utils/red_teaming_sandbox.py +476 -0
- utils/reset_helpers.py +318 -0
- utils/resource_manager.py +370 -0
- utils/skill_helpers.py +447 -0
- utils/task_executor.py +904 -0
- utils/task_helpers.py +270 -0
- utils/template_helpers.py +179 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
services:
|
|
2
|
+
database:
|
|
3
|
+
image: decodingtrustagent/github:db-latest
|
|
4
|
+
environment:
|
|
5
|
+
POSTGRES_USER: postgres
|
|
6
|
+
POSTGRES_PASSWORD: postgres
|
|
7
|
+
POSTGRES_DB: app
|
|
8
|
+
PGPORT: ${GITHUB_PG_PORT:-5432}
|
|
9
|
+
network_mode: host
|
|
10
|
+
volumes:
|
|
11
|
+
- postgres_data:/var/lib/postgresql/data
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ["CMD-SHELL", "pg_isready -U postgres -p ${GITHUB_PG_PORT:-5432}"]
|
|
14
|
+
interval: 10s
|
|
15
|
+
timeout: 5s
|
|
16
|
+
retries: 5
|
|
17
|
+
|
|
18
|
+
backend:
|
|
19
|
+
image: decodingtrustagent/github:api-latest
|
|
20
|
+
network_mode: host
|
|
21
|
+
environment:
|
|
22
|
+
DB_HOST: 127.0.0.1
|
|
23
|
+
DB_PORT: ${GITHUB_PG_PORT:-5432}
|
|
24
|
+
DATABASE_URL: postgres://postgres:postgres@127.0.0.1:${GITHUB_PG_PORT:-5432}/app
|
|
25
|
+
PORT: ${GITHUB_API_PORT:-8083}
|
|
26
|
+
GITHUB_GIT_STORAGE_ROOT: ${GITHUB_GIT_STORAGE_ROOT:-/data/github-repos}
|
|
27
|
+
volumes:
|
|
28
|
+
- github_git_data:${GITHUB_GIT_STORAGE_ROOT:-/data/github-repos}
|
|
29
|
+
depends_on:
|
|
30
|
+
database:
|
|
31
|
+
condition: service_healthy
|
|
32
|
+
healthcheck:
|
|
33
|
+
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:${GITHUB_API_PORT:-8083}/health || exit 1"]
|
|
34
|
+
interval: 10s
|
|
35
|
+
timeout: 5s
|
|
36
|
+
retries: 5
|
|
37
|
+
start_period: 15s
|
|
38
|
+
|
|
39
|
+
frontend:
|
|
40
|
+
image: decodingtrustagent/github:ui-latest
|
|
41
|
+
network_mode: host
|
|
42
|
+
environment:
|
|
43
|
+
GITHUB_API_URL: http://127.0.0.1:${GITHUB_API_PORT:-8083}
|
|
44
|
+
GITHUB_UI_PORT: ${GITHUB_UI_PORT:-8045}
|
|
45
|
+
depends_on:
|
|
46
|
+
- backend
|
|
47
|
+
|
|
48
|
+
volumes:
|
|
49
|
+
postgres_data:
|
|
50
|
+
github_git_data:
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
services:
|
|
2
|
+
database:
|
|
3
|
+
build: ../app/database
|
|
4
|
+
environment:
|
|
5
|
+
POSTGRES_USER: postgres
|
|
6
|
+
POSTGRES_PASSWORD: postgres
|
|
7
|
+
POSTGRES_DB: app
|
|
8
|
+
PGPORT: ${GITHUB_PG_PORT:-5432}
|
|
9
|
+
network_mode: host
|
|
10
|
+
volumes:
|
|
11
|
+
- postgres_data:/var/lib/postgresql/data
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ["CMD-SHELL", "pg_isready -U postgres -p ${GITHUB_PG_PORT:-5432}"]
|
|
14
|
+
interval: 10s
|
|
15
|
+
timeout: 5s
|
|
16
|
+
retries: 5
|
|
17
|
+
|
|
18
|
+
backend:
|
|
19
|
+
build: ../app/backend
|
|
20
|
+
network_mode: host
|
|
21
|
+
environment:
|
|
22
|
+
DB_HOST: 127.0.0.1
|
|
23
|
+
DB_PORT: ${GITHUB_PG_PORT:-5432}
|
|
24
|
+
DATABASE_URL: postgres://postgres:postgres@127.0.0.1:${GITHUB_PG_PORT:-5432}/app
|
|
25
|
+
PORT: ${GITHUB_API_PORT:-8083}
|
|
26
|
+
GITHUB_GIT_STORAGE_ROOT: ${GITHUB_GIT_STORAGE_ROOT:-/data/github-repos}
|
|
27
|
+
volumes:
|
|
28
|
+
- github_git_data:${GITHUB_GIT_STORAGE_ROOT:-/data/github-repos}
|
|
29
|
+
depends_on:
|
|
30
|
+
database:
|
|
31
|
+
condition: service_healthy
|
|
32
|
+
healthcheck:
|
|
33
|
+
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:${GITHUB_API_PORT:-8083}/health || exit 1"]
|
|
34
|
+
interval: 10s
|
|
35
|
+
timeout: 5s
|
|
36
|
+
retries: 5
|
|
37
|
+
start_period: 15s
|
|
38
|
+
|
|
39
|
+
frontend:
|
|
40
|
+
build: ../app/frontend
|
|
41
|
+
network_mode: host
|
|
42
|
+
environment:
|
|
43
|
+
GITHUB_API_URL: http://127.0.0.1:${GITHUB_API_PORT:-8083}
|
|
44
|
+
GITHUB_UI_PORT: ${GITHUB_UI_PORT:-8045}
|
|
45
|
+
depends_on:
|
|
46
|
+
- backend
|
|
47
|
+
|
|
48
|
+
volumes:
|
|
49
|
+
postgres_data:
|
|
50
|
+
github_git_data:
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
services:
|
|
2
|
+
mailpit:
|
|
3
|
+
image: axllent/mailpit:latest
|
|
4
|
+
restart: unless-stopped
|
|
5
|
+
network_mode: host
|
|
6
|
+
environment:
|
|
7
|
+
MP_UI_BIND_ADDR: "0.0.0.0:${GMAIL_UI_PORT:-8025}"
|
|
8
|
+
MP_SMTP_BIND_ADDR: "0.0.0.0:${GMAIL_SMTP_PORT:-1025}"
|
|
9
|
+
|
|
10
|
+
user-service:
|
|
11
|
+
image: decodingtrustagent/gmail:service-latest
|
|
12
|
+
restart: unless-stopped
|
|
13
|
+
network_mode: host
|
|
14
|
+
security_opt:
|
|
15
|
+
- seccomp:unconfined
|
|
16
|
+
depends_on:
|
|
17
|
+
- mailpit
|
|
18
|
+
healthcheck:
|
|
19
|
+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:${GMAIL_AUTH_PORT:-8030}/health', timeout=3)"]
|
|
20
|
+
interval: 5s
|
|
21
|
+
timeout: 5s
|
|
22
|
+
retries: 10
|
|
23
|
+
start_period: 10s
|
|
24
|
+
volumes:
|
|
25
|
+
- gmail_data:/app/data
|
|
26
|
+
environment:
|
|
27
|
+
- MAILPIT_BASE_URL=http://127.0.0.1:${GMAIL_UI_PORT:-8025}
|
|
28
|
+
- MAILPIT_SMTP_HOST=127.0.0.1
|
|
29
|
+
- MAILPIT_SMTP_PORT=${GMAIL_SMTP_PORT:-1025}
|
|
30
|
+
- DATABASE_PATH=/app/data/users.db
|
|
31
|
+
- ALLOWED_ORIGINS=*
|
|
32
|
+
- AUTH_PORT=${GMAIL_AUTH_PORT:-8030}
|
|
33
|
+
- PROXY_PORT=${GMAIL_PROXY_PORT:-8031}
|
|
34
|
+
|
|
35
|
+
gmail-ui:
|
|
36
|
+
image: decodingtrustagent/gmail:ui-latest
|
|
37
|
+
restart: unless-stopped
|
|
38
|
+
network_mode: host
|
|
39
|
+
security_opt:
|
|
40
|
+
- seccomp:unconfined
|
|
41
|
+
depends_on:
|
|
42
|
+
- mailpit
|
|
43
|
+
- user-service
|
|
44
|
+
environment:
|
|
45
|
+
- MAILPIT_API_HOST=127.0.0.1:${GMAIL_UI_PORT:-8025}
|
|
46
|
+
- USER_SERVICE_URL=http://127.0.0.1:${GMAIL_AUTH_PORT:-8030}
|
|
47
|
+
- API_PROXY_URL=http://127.0.0.1:${GMAIL_PROXY_PORT:-8031}
|
|
48
|
+
- GMAIL_FRONTEND_PORT=${GMAIL_FRONTEND_PORT:-8050}
|
|
49
|
+
|
|
50
|
+
volumes:
|
|
51
|
+
gmail_data:
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
services:
|
|
2
|
+
mailpit:
|
|
3
|
+
image: axllent/mailpit:latest
|
|
4
|
+
restart: unless-stopped
|
|
5
|
+
network_mode: host
|
|
6
|
+
environment:
|
|
7
|
+
MP_UI_BIND_ADDR: "0.0.0.0:${GMAIL_UI_PORT:-8025}"
|
|
8
|
+
MP_SMTP_BIND_ADDR: "0.0.0.0:${GMAIL_SMTP_PORT:-1025}"
|
|
9
|
+
|
|
10
|
+
# User Service (Authentication + Ownership Tracking)
|
|
11
|
+
user-service:
|
|
12
|
+
build:
|
|
13
|
+
context: ./user_service
|
|
14
|
+
dockerfile: Dockerfile
|
|
15
|
+
network: host
|
|
16
|
+
dns:
|
|
17
|
+
- 8.8.8.8
|
|
18
|
+
- 8.8.4.4
|
|
19
|
+
restart: unless-stopped
|
|
20
|
+
network_mode: host
|
|
21
|
+
security_opt:
|
|
22
|
+
- seccomp:unconfined
|
|
23
|
+
depends_on:
|
|
24
|
+
- mailpit
|
|
25
|
+
healthcheck:
|
|
26
|
+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:${GMAIL_AUTH_PORT:-8030}/health', timeout=3)"]
|
|
27
|
+
interval: 5s
|
|
28
|
+
timeout: 5s
|
|
29
|
+
retries: 10
|
|
30
|
+
start_period: 10s
|
|
31
|
+
volumes:
|
|
32
|
+
- gmail_data:/app/data # Named volume - each project gets its own
|
|
33
|
+
- ./init_examples:/app/init_examples
|
|
34
|
+
environment:
|
|
35
|
+
- MAILPIT_BASE_URL=http://127.0.0.1:${GMAIL_UI_PORT:-8025}
|
|
36
|
+
- MAILPIT_SMTP_HOST=127.0.0.1
|
|
37
|
+
- MAILPIT_SMTP_PORT=${GMAIL_SMTP_PORT:-1025}
|
|
38
|
+
- DATABASE_PATH=/app/data/users.db
|
|
39
|
+
- ALLOWED_ORIGINS=*
|
|
40
|
+
- AUTH_PORT=${GMAIL_AUTH_PORT:-8030}
|
|
41
|
+
- PROXY_PORT=${GMAIL_PROXY_PORT:-8031}
|
|
42
|
+
|
|
43
|
+
gmail-ui:
|
|
44
|
+
build:
|
|
45
|
+
context: ./gmail_ui
|
|
46
|
+
dockerfile: Dockerfile
|
|
47
|
+
network: host
|
|
48
|
+
dns:
|
|
49
|
+
- 8.8.8.8
|
|
50
|
+
- 8.8.4.4
|
|
51
|
+
restart: unless-stopped
|
|
52
|
+
network_mode: host
|
|
53
|
+
security_opt:
|
|
54
|
+
- seccomp:unconfined
|
|
55
|
+
depends_on:
|
|
56
|
+
- mailpit
|
|
57
|
+
- user-service
|
|
58
|
+
environment:
|
|
59
|
+
- MAILPIT_API_HOST=127.0.0.1:${GMAIL_UI_PORT:-8025}
|
|
60
|
+
- USER_SERVICE_URL=http://127.0.0.1:${GMAIL_AUTH_PORT:-8030}
|
|
61
|
+
- API_PROXY_URL=http://127.0.0.1:${GMAIL_PROXY_PORT:-8031}
|
|
62
|
+
- GMAIL_FRONTEND_PORT=${GMAIL_FRONTEND_PORT:-8050}
|
|
63
|
+
|
|
64
|
+
volumes:
|
|
65
|
+
gmail_data:
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
services:
|
|
3
|
+
form-api:
|
|
4
|
+
image: decodingtrustagent/google-form:api-latest
|
|
5
|
+
dns:
|
|
6
|
+
- 8.8.8.8
|
|
7
|
+
- 8.8.4.4
|
|
8
|
+
network_mode: host
|
|
9
|
+
restart: unless-stopped
|
|
10
|
+
environment:
|
|
11
|
+
- SCHEMA_PATH=/app/schemas/schema.json
|
|
12
|
+
- ALLOW_ORIGINS=*
|
|
13
|
+
- SCHEMA_INIT=/app/init/schema.json
|
|
14
|
+
- GOOGLE_FORM_API_PORT=${GOOGLE_FORM_API_PORT:-8054}
|
|
15
|
+
volumes:
|
|
16
|
+
- form_data:/app/data
|
|
17
|
+
|
|
18
|
+
form-ui:
|
|
19
|
+
image: decodingtrustagent/google-form:ui-latest
|
|
20
|
+
dns:
|
|
21
|
+
- 8.8.8.8
|
|
22
|
+
- 8.8.4.4
|
|
23
|
+
network_mode: host
|
|
24
|
+
restart: unless-stopped
|
|
25
|
+
environment:
|
|
26
|
+
- VITE_API_BASE=/api
|
|
27
|
+
- GOOGLE_FORM_UI_PORT=${GOOGLE_FORM_UI_PORT:-8055}
|
|
28
|
+
- GOOGLE_FORM_API_PORT=${GOOGLE_FORM_API_PORT:-8054}
|
|
29
|
+
depends_on:
|
|
30
|
+
- form-api
|
|
31
|
+
|
|
32
|
+
volumes:
|
|
33
|
+
form_data:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
services:
|
|
3
|
+
form-api:
|
|
4
|
+
build:
|
|
5
|
+
context: ./server
|
|
6
|
+
dockerfile: Dockerfile
|
|
7
|
+
network: host
|
|
8
|
+
dns:
|
|
9
|
+
- 8.8.8.8
|
|
10
|
+
- 8.8.4.4
|
|
11
|
+
network_mode: host
|
|
12
|
+
restart: unless-stopped
|
|
13
|
+
environment:
|
|
14
|
+
- SCHEMA_PATH=/app/schemas/schema.json
|
|
15
|
+
- ALLOW_ORIGINS=*
|
|
16
|
+
- SCHEMA_INIT=/app/init/schema.json
|
|
17
|
+
- GOOGLE_FORM_API_PORT=${GOOGLE_FORM_API_PORT:-8054}
|
|
18
|
+
volumes:
|
|
19
|
+
- form_data:/app/data # Named volume - each project gets its own
|
|
20
|
+
- ./schemas:/app/schemas
|
|
21
|
+
- ./init:/app/init
|
|
22
|
+
|
|
23
|
+
form-ui:
|
|
24
|
+
build:
|
|
25
|
+
context: ./ui
|
|
26
|
+
dockerfile: Dockerfile
|
|
27
|
+
network: host
|
|
28
|
+
dns:
|
|
29
|
+
- 8.8.8.8
|
|
30
|
+
- 8.8.4.4
|
|
31
|
+
network_mode: host
|
|
32
|
+
restart: unless-stopped
|
|
33
|
+
environment:
|
|
34
|
+
- VITE_API_BASE=/api
|
|
35
|
+
- GOOGLE_FORM_UI_PORT=${GOOGLE_FORM_UI_PORT:-8055}
|
|
36
|
+
- GOOGLE_FORM_API_PORT=${GOOGLE_FORM_API_PORT:-8054}
|
|
37
|
+
depends_on:
|
|
38
|
+
- form-api
|
|
39
|
+
|
|
40
|
+
volumes:
|
|
41
|
+
form_data:
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
googledocs-pg:
|
|
5
|
+
image: decodingtrustagent/google-docs:db-latest
|
|
6
|
+
network_mode: host
|
|
7
|
+
privileged: true
|
|
8
|
+
security_opt:
|
|
9
|
+
- seccomp:unconfined
|
|
10
|
+
environment:
|
|
11
|
+
POSTGRES_DB: googledocs_sandbox
|
|
12
|
+
POSTGRES_USER: sandbox
|
|
13
|
+
POSTGRES_PASSWORD: sandbox
|
|
14
|
+
PGPORT: ${GOOGLEDOCS_PG_PORT:-5474}
|
|
15
|
+
healthcheck:
|
|
16
|
+
test: ["CMD-SHELL", "pg_isready -U sandbox -d googledocs_sandbox"]
|
|
17
|
+
interval: 5s
|
|
18
|
+
timeout: 5s
|
|
19
|
+
retries: 20
|
|
20
|
+
start_period: 30s
|
|
21
|
+
restart: unless-stopped
|
|
22
|
+
|
|
23
|
+
googledocs-api:
|
|
24
|
+
image: decodingtrustagent/google-docs:api-latest
|
|
25
|
+
network_mode: host
|
|
26
|
+
privileged: true
|
|
27
|
+
security_opt:
|
|
28
|
+
- seccomp:unconfined
|
|
29
|
+
ulimits:
|
|
30
|
+
nproc: 65535
|
|
31
|
+
nofile:
|
|
32
|
+
soft: 65535
|
|
33
|
+
hard: 65535
|
|
34
|
+
depends_on:
|
|
35
|
+
googledocs-pg:
|
|
36
|
+
condition: service_healthy
|
|
37
|
+
environment:
|
|
38
|
+
GOOGLEDOCS_PG_HOST: 127.0.0.1
|
|
39
|
+
GOOGLEDOCS_PG_PORT: ${GOOGLEDOCS_PG_PORT:-5474}
|
|
40
|
+
GOOGLEDOCS_PG_DB: googledocs_sandbox
|
|
41
|
+
GOOGLEDOCS_PG_USER: sandbox
|
|
42
|
+
GOOGLEDOCS_PG_PASSWORD: sandbox
|
|
43
|
+
GOOGLEDOCS_API_PORT: ${GOOGLEDOCS_API_PORT:-8041}
|
|
44
|
+
healthcheck:
|
|
45
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:$${GOOGLEDOCS_API_PORT:-8041}/health', timeout=5)\" || exit 1"]
|
|
46
|
+
interval: 5s
|
|
47
|
+
timeout: 10s
|
|
48
|
+
retries: 30
|
|
49
|
+
start_period: 90s
|
|
50
|
+
restart: unless-stopped
|
|
51
|
+
|
|
52
|
+
googledocs-ui:
|
|
53
|
+
image: decodingtrustagent/google-docs:ui-latest
|
|
54
|
+
network_mode: host
|
|
55
|
+
restart: unless-stopped
|
|
56
|
+
depends_on:
|
|
57
|
+
googledocs-api:
|
|
58
|
+
condition: service_healthy
|
|
59
|
+
environment:
|
|
60
|
+
GOOGLEDOCS_FRONTEND_PORT: ${GOOGLEDOCS_FRONTEND_PORT:-8042}
|
|
61
|
+
GOOGLEDOCS_API_URL: http://127.0.0.1:${GOOGLEDOCS_API_PORT:-8041}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
services:
|
|
3
|
+
googledocs-pg:
|
|
4
|
+
image: postgres:14
|
|
5
|
+
network_mode: host
|
|
6
|
+
privileged: true
|
|
7
|
+
security_opt:
|
|
8
|
+
- seccomp:unconfined
|
|
9
|
+
environment:
|
|
10
|
+
POSTGRES_DB: googledocs_sandbox
|
|
11
|
+
POSTGRES_USER: sandbox
|
|
12
|
+
POSTGRES_PASSWORD: sandbox
|
|
13
|
+
PGPORT: ${GOOGLEDOCS_PG_PORT:-5474}
|
|
14
|
+
volumes:
|
|
15
|
+
- ./init:/docker-entrypoint-initdb.d:ro
|
|
16
|
+
healthcheck:
|
|
17
|
+
test: ["CMD-SHELL", "pg_isready -U sandbox -d googledocs_sandbox"]
|
|
18
|
+
interval: 5s
|
|
19
|
+
timeout: 5s
|
|
20
|
+
retries: 20
|
|
21
|
+
start_period: 30s
|
|
22
|
+
restart: unless-stopped
|
|
23
|
+
|
|
24
|
+
googledocs-api:
|
|
25
|
+
image: python:3.12-slim
|
|
26
|
+
network_mode: host
|
|
27
|
+
privileged: true
|
|
28
|
+
security_opt:
|
|
29
|
+
- seccomp:unconfined
|
|
30
|
+
ulimits:
|
|
31
|
+
nproc: 65535
|
|
32
|
+
nofile:
|
|
33
|
+
soft: 65535
|
|
34
|
+
hard: 65535
|
|
35
|
+
dns:
|
|
36
|
+
- 8.8.8.8
|
|
37
|
+
- 8.8.4.4
|
|
38
|
+
depends_on:
|
|
39
|
+
googledocs-pg:
|
|
40
|
+
condition: service_healthy
|
|
41
|
+
working_dir: /app
|
|
42
|
+
environment:
|
|
43
|
+
GOOGLEDOCS_PG_HOST: 127.0.0.1
|
|
44
|
+
GOOGLEDOCS_PG_PORT: ${GOOGLEDOCS_PG_PORT:-5474}
|
|
45
|
+
GOOGLEDOCS_PG_DB: googledocs_sandbox
|
|
46
|
+
GOOGLEDOCS_PG_USER: sandbox
|
|
47
|
+
GOOGLEDOCS_PG_PASSWORD: sandbox
|
|
48
|
+
GOOGLEDOCS_API_PORT: ${GOOGLEDOCS_API_PORT:-8041}
|
|
49
|
+
volumes:
|
|
50
|
+
- ./api:/app:ro
|
|
51
|
+
- ./init_examples:/init_examples:ro
|
|
52
|
+
command: >
|
|
53
|
+
sh -c "pip install --no-cache-dir --progress-bar off 'psycopg[binary]>=3.1' fastapi 'uvicorn[standard]' &&
|
|
54
|
+
uvicorn main:app --host 0.0.0.0 --port $${GOOGLEDOCS_API_PORT:-8041}"
|
|
55
|
+
healthcheck:
|
|
56
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:$${GOOGLEDOCS_API_PORT:-8041}/health', timeout=5)\" || exit 1"]
|
|
57
|
+
interval: 5s
|
|
58
|
+
timeout: 10s
|
|
59
|
+
retries: 30
|
|
60
|
+
start_period: 90s
|
|
61
|
+
restart: unless-stopped
|
|
62
|
+
|
|
63
|
+
googledocs-ui:
|
|
64
|
+
build:
|
|
65
|
+
context: ./ui
|
|
66
|
+
dockerfile: Dockerfile
|
|
67
|
+
network: host
|
|
68
|
+
dns:
|
|
69
|
+
- 8.8.8.8
|
|
70
|
+
- 8.8.4.4
|
|
71
|
+
network_mode: host
|
|
72
|
+
restart: unless-stopped
|
|
73
|
+
depends_on:
|
|
74
|
+
googledocs-api:
|
|
75
|
+
condition: service_healthy
|
|
76
|
+
environment:
|
|
77
|
+
GOOGLEDOCS_FRONTEND_PORT: ${GOOGLEDOCS_FRONTEND_PORT:-8042}
|
|
78
|
+
GOOGLEDOCS_API_URL: http://127.0.0.1:${GOOGLEDOCS_API_PORT:-8041}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
hospital-server:
|
|
5
|
+
image: decodingtrustagent/hospital:latest
|
|
6
|
+
environment:
|
|
7
|
+
- HOSPITAL_HOST=0.0.0.0
|
|
8
|
+
# Keep container bind port fixed; host-side port is mapped dynamically below.
|
|
9
|
+
- HOSPITAL_PORT=12001
|
|
10
|
+
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
11
|
+
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
12
|
+
- REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN:-}
|
|
13
|
+
- PATIENT_MODEL=${PATIENT_MODEL:-gpt-5.1-2025-11-13}
|
|
14
|
+
- MEASUREMENT_MODEL=${MEASUREMENT_MODEL:-gpt-5.1-2025-11-13}
|
|
15
|
+
- JUDGE_MODEL=${JUDGE_MODEL:-gpt-5.1-2025-11-13}
|
|
16
|
+
ports:
|
|
17
|
+
- "${HOSPITAL_PORT:-12001}:12001"
|
|
18
|
+
volumes:
|
|
19
|
+
- ./data:/app/data:ro
|
|
20
|
+
healthcheck:
|
|
21
|
+
test: ["CMD", "curl", "-f", "http://localhost:12001/"]
|
|
22
|
+
interval: 10s
|
|
23
|
+
timeout: 5s
|
|
24
|
+
retries: 3
|
|
25
|
+
start_period: 10s
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
hospital-server:
|
|
5
|
+
build:
|
|
6
|
+
context: .
|
|
7
|
+
dockerfile: Dockerfile
|
|
8
|
+
environment:
|
|
9
|
+
- HOSPITAL_HOST=0.0.0.0
|
|
10
|
+
# Keep container bind port fixed; host-side port is mapped dynamically below.
|
|
11
|
+
- HOSPITAL_PORT=12001
|
|
12
|
+
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
13
|
+
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
14
|
+
- REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN:-}
|
|
15
|
+
- PATIENT_MODEL=${PATIENT_MODEL:-gpt-5.1-2025-11-13}
|
|
16
|
+
- MEASUREMENT_MODEL=${MEASUREMENT_MODEL:-gpt-5.1-2025-11-13}
|
|
17
|
+
- JUDGE_MODEL=${JUDGE_MODEL:-gpt-5.1-2025-11-13}
|
|
18
|
+
ports:
|
|
19
|
+
- "${HOSPITAL_PORT:-12001}:12001"
|
|
20
|
+
volumes:
|
|
21
|
+
- ./data:/app/data:ro
|
|
22
|
+
healthcheck:
|
|
23
|
+
test: ["CMD", "curl", "-f", "http://localhost:12001/"]
|
|
24
|
+
interval: 10s
|
|
25
|
+
timeout: 5s
|
|
26
|
+
retries: 3
|
|
27
|
+
start_period: 10s
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Legal environment for DecodingTrust-Agent
|
|
2
|
+
#
|
|
3
|
+
# Usage:
|
|
4
|
+
# docker compose up -d
|
|
5
|
+
|
|
6
|
+
services:
|
|
7
|
+
legal-web:
|
|
8
|
+
image: decodingtrustagent/legal:latest
|
|
9
|
+
network_mode: host
|
|
10
|
+
mem_limit: 512m
|
|
11
|
+
cpus: 1.0
|
|
12
|
+
environment:
|
|
13
|
+
- FLASK_HOST=0.0.0.0
|
|
14
|
+
- FLASK_PORT=${LEGAL_WEB_PORT:-5001}
|
|
15
|
+
- INJECTION_CONFIG=${INJECTION_CONFIG:-}
|
|
16
|
+
- LEGAL_TOOL_DESC_INJECTIONS=${LEGAL_TOOL_DESC_INJECTIONS:-}
|
|
17
|
+
healthcheck:
|
|
18
|
+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:${LEGAL_WEB_PORT:-5001}/api/health')"]
|
|
19
|
+
interval: 10s
|
|
20
|
+
timeout: 5s
|
|
21
|
+
retries: 5
|
|
22
|
+
start_period: 15s
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
services:
|
|
3
|
+
linkedin-pg:
|
|
4
|
+
image: postgres:14
|
|
5
|
+
network_mode: host
|
|
6
|
+
security_opt:
|
|
7
|
+
- seccomp=unconfined
|
|
8
|
+
environment:
|
|
9
|
+
POSTGRES_DB: linkedin_sandbox
|
|
10
|
+
POSTGRES_USER: sandbox
|
|
11
|
+
POSTGRES_PASSWORD: sandbox
|
|
12
|
+
PGPORT: ${LINKEDIN_PG_PORT:-5460}
|
|
13
|
+
volumes:
|
|
14
|
+
- ./init:/docker-entrypoint-initdb.d:ro
|
|
15
|
+
healthcheck:
|
|
16
|
+
test: ["CMD-SHELL", "pg_isready -U sandbox -d linkedin_sandbox -p ${LINKEDIN_PG_PORT:-5460}"]
|
|
17
|
+
interval: 5s
|
|
18
|
+
timeout: 5s
|
|
19
|
+
retries: 20
|
|
20
|
+
restart: unless-stopped
|
|
21
|
+
|
|
22
|
+
linkedin-api:
|
|
23
|
+
build:
|
|
24
|
+
context: ./api
|
|
25
|
+
dockerfile: Dockerfile
|
|
26
|
+
network_mode: host
|
|
27
|
+
depends_on:
|
|
28
|
+
linkedin-pg:
|
|
29
|
+
condition: service_healthy
|
|
30
|
+
dns:
|
|
31
|
+
- 8.8.8.8
|
|
32
|
+
- 8.8.4.4
|
|
33
|
+
working_dir: /app
|
|
34
|
+
environment:
|
|
35
|
+
LINKEDIN_PG_HOST: 127.0.0.1
|
|
36
|
+
LINKEDIN_PG_PORT: ${LINKEDIN_PG_PORT:-5460}
|
|
37
|
+
LINKEDIN_PG_DB: linkedin_sandbox
|
|
38
|
+
LINKEDIN_PG_USER: sandbox
|
|
39
|
+
LINKEDIN_PG_PASSWORD: sandbox
|
|
40
|
+
LINKEDIN_API_PORT: ${LINKEDIN_API_PORT:-8060}
|
|
41
|
+
volumes:
|
|
42
|
+
- ./init_examples:/init_examples:ro
|
|
43
|
+
healthcheck:
|
|
44
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request,sys,os; urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('LINKEDIN_API_PORT','8060')+'/health', timeout=2); sys.exit(0)\" || exit 1"]
|
|
45
|
+
interval: 3s
|
|
46
|
+
timeout: 3s
|
|
47
|
+
retries: 40
|
|
48
|
+
restart: unless-stopped
|
|
49
|
+
|
|
50
|
+
linkedin-ui:
|
|
51
|
+
build:
|
|
52
|
+
context: ./linkedin_ui
|
|
53
|
+
dockerfile: Dockerfile
|
|
54
|
+
network_mode: host
|
|
55
|
+
dns:
|
|
56
|
+
- 8.8.8.8
|
|
57
|
+
- 8.8.4.4
|
|
58
|
+
depends_on:
|
|
59
|
+
linkedin-api:
|
|
60
|
+
condition: service_healthy
|
|
61
|
+
environment:
|
|
62
|
+
LINKEDIN_API_PORT: ${LINKEDIN_API_PORT:-8060}
|
|
63
|
+
LINKEDIN_UI_PORT: ${LINKEDIN_UI_PORT:-8061}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
networks:
|
|
2
|
+
default:
|
|
3
|
+
driver: bridge
|
|
4
|
+
ipam:
|
|
5
|
+
config:
|
|
6
|
+
- subnet: 172.22.0.0/24
|
|
7
|
+
|
|
8
|
+
services:
|
|
9
|
+
macos-mcp:
|
|
10
|
+
image: decodingtrustagent/macos
|
|
11
|
+
environment:
|
|
12
|
+
VERSION: "14"
|
|
13
|
+
PASS: "docker"
|
|
14
|
+
USER: "docker"
|
|
15
|
+
DISK_FMT: "qcow2"
|
|
16
|
+
CPU_MODEL: "host"
|
|
17
|
+
CPU_FLAGS: "-invtsc"
|
|
18
|
+
ARGUMENTS: "${ARGUMENTS--loadvm booted}"
|
|
19
|
+
# VNC config for FastAPI (connects to VM's Screen Sharing via TAP bridge)
|
|
20
|
+
MACOS_HOST: "172.30.0.2"
|
|
21
|
+
MACOS_PORT: "5900"
|
|
22
|
+
MACOS_PASSWORD: "docker"
|
|
23
|
+
MACOS_USERNAME: "docker"
|
|
24
|
+
# SSH config for /shell endpoint (VM on TAP bridge)
|
|
25
|
+
MACOS_SSH_HOST: "172.30.0.2"
|
|
26
|
+
MACOS_SSH_PORT: "22"
|
|
27
|
+
MACOS_SSH_USER: "docker"
|
|
28
|
+
MACOS_SSH_PASSWORD: "docker"
|
|
29
|
+
devices:
|
|
30
|
+
- /dev/kvm
|
|
31
|
+
- /dev/net/tun
|
|
32
|
+
cap_add:
|
|
33
|
+
- NET_ADMIN
|
|
34
|
+
ports:
|
|
35
|
+
- "${WEB_MANAGEMENT_PORT:-8006}:8006"
|
|
36
|
+
- "${MCP_SERVICE_PORT:-8005}:8005"
|
|
37
|
+
volumes:
|
|
38
|
+
- ${MACOS_DATA_DIR:-./macos}:/storage
|
|
39
|
+
- ./entry.sh:/run/entry.sh:ro
|
|
40
|
+
restart: always
|
|
41
|
+
stop_grace_period: 2m
|
|
42
|
+
|
|
43
|
+
exfil-listener:
|
|
44
|
+
image: python:3-slim
|
|
45
|
+
command: ["python3", "/app/exfil_listener.py"]
|
|
46
|
+
volumes:
|
|
47
|
+
- ../windows/exfil_listener.py:/app/exfil_listener.py:ro
|
|
48
|
+
ports:
|
|
49
|
+
- "${EXFIL_PORT:-9899}:9999"
|
|
50
|
+
networks:
|
|
51
|
+
default:
|
|
52
|
+
ipv4_address: 172.22.0.2
|
|
53
|
+
restart: always
|
|
54
|
+
|
|
55
|
+
ftp-listener:
|
|
56
|
+
image: python:3-slim
|
|
57
|
+
command: ["sh", "-c", "pip install -q pyftpdlib && python3 /app/ftp_listener.py"]
|
|
58
|
+
environment:
|
|
59
|
+
FTP_MASQUERADE_IP: "172.22.0.3"
|
|
60
|
+
volumes:
|
|
61
|
+
- ../windows/ftp_listener.py:/app/ftp_listener.py:ro
|
|
62
|
+
ports:
|
|
63
|
+
- "${FTP_API_PORT:-9898}:8080"
|
|
64
|
+
networks:
|
|
65
|
+
default:
|
|
66
|
+
ipv4_address: 172.22.0.3
|
|
67
|
+
restart: always
|
|
68
|
+
|
|
69
|
+
dns-listener:
|
|
70
|
+
image: python:3-slim
|
|
71
|
+
command: ["python3", "/app/dns_listener.py"]
|
|
72
|
+
volumes:
|
|
73
|
+
- ../windows/dns_listener.py:/app/dns_listener.py:ro
|
|
74
|
+
ports:
|
|
75
|
+
- "${DNS_API_PORT:-9897}:8080"
|
|
76
|
+
networks:
|
|
77
|
+
default:
|
|
78
|
+
ipv4_address: 172.22.0.4
|
|
79
|
+
restart: always
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
services:
|
|
2
|
+
os-filesystem:
|
|
3
|
+
image: decodingtrustagent/os-filesystem:filesystem
|
|
4
|
+
stdin_open: true
|
|
5
|
+
tty: true
|
|
6
|
+
ports:
|
|
7
|
+
- "${OS_FILESYSTEM_API_PORT:-8034}:8034"
|
|
8
|
+
environment:
|
|
9
|
+
- API_PORT=8034
|
|
10
|
+
- PERMISSION_LOG_PATH=/decodingtrust_agent/permission_log.jsonl
|
|
11
|
+
healthcheck:
|
|
12
|
+
test: ["CMD", "curl", "-sf", "http://localhost:8034/health"]
|
|
13
|
+
interval: 3s
|
|
14
|
+
timeout: 5s
|
|
15
|
+
retries: 10
|
|
16
|
+
start_period: 5s
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
services:
|
|
2
|
+
# OS-Filesystem Ubuntu Container with embedded API.
|
|
3
|
+
os-filesystem:
|
|
4
|
+
build:
|
|
5
|
+
context: .
|
|
6
|
+
dockerfile: os-filesystem-ubuntu.Dockerfile
|
|
7
|
+
image: decodingtrustagent/os-filesystem:filesystem
|
|
8
|
+
stdin_open: true
|
|
9
|
+
tty: true
|
|
10
|
+
ports:
|
|
11
|
+
- "${OS_FILESYSTEM_API_PORT:-8034}:8034"
|
|
12
|
+
environment:
|
|
13
|
+
- API_PORT=8034
|
|
14
|
+
- PERMISSION_LOG_PATH=/decodingtrust_agent/permission_log.jsonl
|
|
15
|
+
healthcheck:
|
|
16
|
+
test: ["CMD", "curl", "-sf", "http://localhost:8034/health"]
|
|
17
|
+
interval: 3s
|
|
18
|
+
timeout: 5s
|
|
19
|
+
retries: 10
|
|
20
|
+
start_period: 5s
|