From d778a02bfbfb543a69e405e926efaf9974977fdb Mon Sep 17 00:00:00 2001 From: ImBenji Date: Wed, 19 Aug 2026 09:12:44 +0100 Subject: [PATCH] fix: make postgres the default runtime service --- docker-compose.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ddd138e..7288d68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,8 +61,14 @@ services: environment: NODE_ENV: production INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" DURIIN_RUN_SCHEDULER: "false" AUTONOMY_EXECUTION_MODE: "${AUTONOMY_EXECUTION_MODE:-shadow}" + depends_on: + postgres: + condition: service_healthy restart: unless-stopped networks: - nginx_proxy_manager_default @@ -98,7 +104,13 @@ services: NODE_ENV: production DURIIN_DB: /data/archive.sqlite INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_POLL_MS: "${AUTONOMY_POLL_MS:-5000}" + depends_on: + postgres: + condition: service_healthy cpus: "0.50" mem_limit: 512m restart: unless-stopped @@ -118,7 +130,13 @@ services: NODE_ENV: production DURIIN_DB: /data/archive.sqlite INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_POLL_MS: "${AUTONOMY_COORDINATOR_POLL_MS:-5000}" + depends_on: + postgres: + condition: service_healthy cpus: "0.75" mem_limit: 768m restart: unless-stopped @@ -136,7 +154,13 @@ services: environment: NODE_ENV: production INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_OUTCOME_POLL_MS: "${AUTONOMY_OUTCOME_POLL_MS:-60000}" + depends_on: + postgres: + condition: service_healthy cpus: "0.25" mem_limit: 384m restart: unless-stopped @@ -156,9 +180,15 @@ services: NODE_ENV: production DURIIN_DB: /data/archive.sqlite INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_REPLAY_POLL_MS: "${AUTONOMY_REPLAY_POLL_MS:-15000}" AUTONOMY_REPLAY_DAILY_BUDGET: "${AUTONOMY_REPLAY_DAILY_BUDGET:-100}" AUTONOMY_REPLAY_WATERMARK_DAYS: "${AUTONOMY_REPLAY_WATERMARK_DAYS:-7}" + depends_on: + postgres: + condition: service_healthy cpus: "0.50" mem_limit: 768m restart: unless-stopped @@ -176,7 +206,13 @@ services: environment: NODE_ENV: production INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_CALIBRATION_POLL_MS: "${AUTONOMY_CALIBRATION_POLL_MS:-60000}" + depends_on: + postgres: + condition: service_healthy cpus: "0.25" mem_limit: 384m restart: unless-stopped @@ -194,9 +230,15 @@ services: environment: NODE_ENV: production INTELLIGENCE_DB: /data/intelligence.sqlite + DURIIN_DB_BACKEND: postgres + DURIIN_USE_POSTGRES: "true" + DURIIN_POSTGRES_URL: "postgresql://${POSTGRES_USER:-duriin}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-duriin}" AUTONOMY_EXECUTION_MODE: "${AUTONOMY_EXECUTION_MODE:-shadow}" AUTONOMY_DEFAULT_NOTIONAL: "${AUTONOMY_DEFAULT_NOTIONAL:-100}" AUTONOMY_EXECUTION_POLL_MS: "${AUTONOMY_EXECUTION_POLL_MS:-10000}" + depends_on: + postgres: + condition: service_healthy cpus: "0.25" mem_limit: 384m restart: unless-stopped