-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1008 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1008 Bytes
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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: hashscope-backend
env_file:
- .env
ports:
- "3333:3333" # Proxy port for miners
- "8000:8000" # API port
restart: unless-stopped
networks:
- hashscope
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
container_name: hashscope-frontend
env_file:
- .env
ports:
- "3000:80" # Web UI port
depends_on:
- backend
restart: unless-stopped
networks:
- hashscope
# Agent service (Iteration 2)
# Scale with: docker compose up -d --scale agent=3
agent:
build:
context: ./agents
dockerfile: Dockerfile
env_file:
- .env
restart: unless-stopped
networks:
- hashscope
depends_on:
- backend
# By default, no agents run
# Use --scale agent=N to run N agents
deploy:
replicas: 0
networks:
hashscope:
driver: bridge