-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.quantum.yml
More file actions
112 lines (105 loc) · 2.56 KB
/
Copy pathdocker-compose.quantum.yml
File metadata and controls
112 lines (105 loc) · 2.56 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.8'
services:
quantum-dev:
build:
context: .
dockerfile: Dockerfile.quantum
container_name: quantum_executor_dev
environment:
- PYTHONPATH=/app
- DWAVE_CONFIG_FILE=/app/.dwave/dwave.conf
- ENVIRONMENT=development
volumes:
- .:/app
- ~/.dwave:/app/.dwave:ro # Mount D-Wave config (read-only)
- quantum_data:/app/quantum_results
ports:
- "8000:8000" # Main application
- "8001:8001" # MCP server
- "3000:3000" # Frontend
networks:
- quantum_net
healthcheck:
test: ["CMD", "python", "-c", "import dwave.ocean; print('Quantum ready')"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- redis
- postgres
mcp-quantum-server:
build:
context: .
dockerfile: Dockerfile.quantum
container_name: mcp_quantum_server
command: ["python", "mcp_server/main.py", "--quantum-enabled"]
environment:
- PYTHONPATH=/app
- DWAVE_CONFIG_FILE=/app/.dwave/dwave.conf
- MCP_SERVER_PORT=8001
volumes:
- .:/app
- ~/.dwave:/app/.dwave:ro
- quantum_data:/app/quantum_results
ports:
- "8001:8001"
networks:
- quantum_net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:7-alpine
container_name: quantum_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- quantum_net
command: redis-server --appendonly yes
postgres:
image: postgres:15-alpine
container_name: quantum_postgres
environment:
- POSTGRES_DB=quantum_executor
- POSTGRES_USER=quantum_user
- POSTGRES_PASSWORD=quantum_pass
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init_quantum_db.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
networks:
- quantum_net
frontend-quantum:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: quantum_frontend
environment:
- REACT_APP_API_URL=http://localhost:8000
- REACT_APP_MCP_URL=http://localhost:8001
- REACT_APP_QUANTUM_ENABLED=true
ports:
- "3000:3000"
networks:
- quantum_net
depends_on:
- quantum-dev
- mcp-quantum-server
volumes:
quantum_data:
driver: local
redis_data:
driver: local
postgres_data:
driver: local
networks:
quantum_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16