-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (78 loc) · 2.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (78 loc) · 2.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.9"
# Agent Credential Sandbox - Local Development Stack
#
# Usage:
# docker compose up -d proxy # Start proxy only
# docker compose up -d # Start full stack (proxy + mock services)
# docker compose down # Stop everything
networks:
agent-sandbox-internal:
driver: bridge
internal: true # No internet access for sandbox
services:
# ── Mock API Server (for local testing) ────────────────────────────────
mock-api:
build:
context: .
dockerfile: Dockerfile.mock
container_name: mock-api
ports:
- "8080:8080"
networks:
- agent-sandbox-internal
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 5s
timeout: 3s
retries: 10
# ── Credential Proxy ───────────────────────────────────────────────────
proxy:
build:
context: .
dockerfile: Dockerfile.proxy
container_name: credential-proxy
ports:
- "127.0.0.1:9199:9199"
volumes:
- ./.env:/creds/.env:ro
- ./proxy/whitelist.json:/app/whitelist.json:ro
environment:
# Override target URLs to point to mock services
JIRA_URL: http://mock-api:8080/jira
API_URL: http://mock-api:8080/api
GRAPH_URL: http://mock-api:8080/graph
S3_URL: http://minio:9000
networks:
- agent-sandbox-internal
depends_on:
mock-api:
condition: service_healthy
minio:
condition: service_healthy
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9199/health')"]
interval: 5s
timeout: 3s
retries: 10
# ── MinIO (S3-compatible storage for testing) ─────────────────────────
minio:
image: minio/minio:latest
container_name: minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: testkey
MINIO_ROOT_PASSWORD: testsecret12345678
volumes:
- minio-data:/data
ports:
- "9000:9000"
- "9001:9001"
networks:
- agent-sandbox-internal
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 3s
retries: 20
volumes:
minio-data: