Skip to content

Self-improving AI Employees for everyone

fix: Temporal Docker image, foreground mode, embedded worker

trohitg6d96b6c6801d
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index 55a33542..43e9e3c1 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -17,22 +17,21 @@ services:
# Temporal Server (durable workflow execution)
temporal:
- image: temporalio/auto-setup:latest
+ image: temporalio/temporal:latest
container_name: machina-temporal
+ user: root
networks:
- app-network
restart: always
healthcheck:
- test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]
+ test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
environment:
- - DB=sqlite
- - SQLITE_DB_PATH=/data/temporal.db
- - TEMPORAL_ADDRESS=temporal:7233
- TZ=UTC
+ command: ["server", "start-dev", "--ip", "0.0.0.0", "--db-filename", "/data/temporal.db"]
volumes:
- temporal-data:/data
diff --git a/docker-compose.yml b/docker-compose.yml
index 3e9e8a08..f13696ca 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,8 +21,9 @@ services:
# Temporal Server (durable workflow execution)
temporal:
- image: temporalio/auto-setup:latest
+ image: temporalio/temporal:latest
container_name: machina-temporal
+ user: root
profiles:
- temporal
ports:
@@ -32,16 +33,14 @@ services:
- app-network
restart: unless-stopped
healthcheck:
- test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]
+ test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
environment:
- - DB=sqlite
- - SQLITE_DB_PATH=/data/temporal.db
- - TEMPORAL_ADDRESS=temporal:7233
- TZ=UTC
+ command: ["server", "start-dev", "--ip", "0.0.0.0", "--db-filename", "/data/temporal.db"]
volumes:
- temporal-data:/data
diff --git a/package.json b/package.json
index a9ea2351..7e585984 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,7 @@
"client:start": "cd client && npm run start",
"python:start": "cd server && uv run uvicorn main:app --host 127.0.0.1 --port 3010 --log-level warning",
"python:daemon": "cd server && uv run uvicorn main:app --host 0.0.0.0 --port 3010 --log-level warning",
- "temporal:start": "temporal-server start",
+ "temporal:start": "temporal-server start --foreground",
"temporal:stop": "temporal-server stop",
"temporal:status": "temporal-server status",
"temporal:worker": "cd server && uv run python -m services.temporal.worker",
diff --git a/scripts/dev.js b/scripts/dev.js
index d76bfa86..256ab8f0 100644
--- a/scripts/dev.js
+++ b/scripts/dev.js
@@ -89,7 +89,7 @@ async function main() {
if (!skipWhatsApp) services.push('npm:whatsapp:api');
if (config.temporalEnabled) {
services.push('npm:temporal:start');
- services.push('npm:temporal:worker');
+ // Worker runs embedded in the backend (main.py TemporalWorkerManager)
}
// Ready-detection patterns for each service
diff --git a/scripts/start.js b/scripts/start.js
index 38b2681c..2f5c1af3 100755
--- a/scripts/start.js
+++ b/scripts/start.js
@@ -62,7 +62,7 @@ async function main() {
if (!skipWhatsApp) services.push('npm:whatsapp:api');
if (config.temporalEnabled) {
services.push('npm:temporal:start');
- services.push('npm:temporal:worker');
+ // Worker runs embedded in the backend (main.py TemporalWorkerManager)
}
// Ready-detection patterns for each service
@@ -118,7 +118,6 @@ async function main() {
if (!skipWhatsApp) serviceNames.push('whatsapp');
if (config.temporalEnabled) {
serviceNames.push('temporal-server');
- serviceNames.push('temporal-worker');
}
const proc = spawn('npx', [