-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (93 loc) · 2.51 KB
/
docker-compose.yml
File metadata and controls
98 lines (93 loc) · 2.51 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
services:
db:
image: pgvector/pgvector:pg16
container_name: memdb
env_file:
- ./backend/.env
ports:
- "5432:5432"
volumes:
- ./backend/db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 3s
retries: 30
orchestrator:
image: appcalipse/digital-brain-orchestrator
build:
context: ./backend/orchestrator
dockerfile: Dockerfile
platforms:
- "linux/amd64"
container_name: mem-orchestrator
depends_on:
db:
condition: service_healthy
env_file:
- ./backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8000:8000"
volumes:
- ./backend/orchestrator/config/service_manifest.dev.json:/app/config/service_manifest.json:ro
- ./backend/orchestrator/storage/documents:/app/storage/documents
frontend:
build:
context: ./frontend/web
dockerfile: Dockerfile
container_name: mem-frontend
depends_on:
orchestrator:
condition: service_started
env_file:
- ./frontend/web/.env
ports:
- "3000:3000"
mosquitto:
image: eclipse-mosquitto:2
container_name: mem-mosquitto
entrypoint: /mosquitto/config/entrypoint.sh
env_file:
- ./backend/.env
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./backend/robot-gateway/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ./backend/robot-gateway/mosquitto/entrypoint.sh:/mosquitto/config/entrypoint.sh:ro
- mosquitto-data:/mosquitto/data
- mosquitto-log:/mosquitto/log
healthcheck:
test: ["CMD-SHELL", "mosquitto_sub -h localhost -u $$MQTT_USERNAME -P $$MQTT_PASSWORD -t '$$SYS/broker/uptime' -C 1 -W 3 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
robot-gateway:
image: appcalipse/digital-brain-robot-gateway
build:
context: ./backend/robot-gateway
dockerfile: Dockerfile
platforms:
- "linux/amd64"
container_name: mem-robot-gateway
depends_on:
db:
condition: service_healthy
mosquitto:
condition: service_healthy
env_file:
- ./backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8001:8001"
volumes:
postgres-data:
driver: local
mosquitto-data:
driver: local
mosquitto-log:
driver: local