-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.6 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
version: '3.8'
services:
# ProcessCube Robot Agent
robot-agent:
build:
context: .
dockerfile: Dockerfile
container_name: processcube-robot-agent
ports:
- "42042:42042"
environment:
CONFIG_FILE: /app/config.docker.json
LOG_LEVEL: INFO
PYTHONUNBUFFERED: "1"
volumes:
- ./robots:/app/robots
- ./logs:/var/log/processcube-robot-agent
- ./config.docker.json:/app/config.docker.json:ro
- ./temp:/app/temp
networks:
- processcube-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:42042/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
depends_on:
- processcube-engine
# Resource limits (adjust based on your needs)
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G
# Mock ProcessCube Engine (for local development)
processcube-engine:
image: postgres:15-alpine
container_name: processcube-engine-db
environment:
POSTGRES_DB: processcube
POSTGRES_USER: processcube
POSTGRES_PASSWORD: processcube-dev-password
ports:
- "5432:5432"
volumes:
- processcube-db-data:/var/lib/postgresql/data
networks:
- processcube-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U processcube"]
interval: 10s
timeout: 5s
retries: 5
volumes:
processcube-db-data:
driver: local
networks:
processcube-network:
driver: bridge