From e971d19678a7ce94666e5887909823cdd2a6cab2 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:52:03 +0900 Subject: fix: resolve critical deployment blockers - Add Alembic initial migration (6 tables: candles, signals, orders, trades, positions, portfolio_snapshots) - Expose health ports (8080-8083) in docker-compose with healthchecks - Add numpy dependency to strategy-engine pyproject.toml --- docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index 95a5c63..473e2bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,11 +32,18 @@ services: context: . dockerfile: services/data-collector/Dockerfile env_file: .env + ports: + - "8080:8080" depends_on: redis: condition: service_healthy postgres: condition: service_healthy + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"] + interval: 10s + timeout: 5s + retries: 3 restart: unless-stopped strategy-engine: @@ -44,11 +51,18 @@ services: context: . dockerfile: services/strategy-engine/Dockerfile env_file: .env + ports: + - "8081:8081" depends_on: redis: condition: service_healthy postgres: condition: service_healthy + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8081/health')"] + interval: 10s + timeout: 5s + retries: 3 restart: unless-stopped order-executor: @@ -56,11 +70,18 @@ services: context: . dockerfile: services/order-executor/Dockerfile env_file: .env + ports: + - "8082:8082" depends_on: redis: condition: service_healthy postgres: condition: service_healthy + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8082/health')"] + interval: 10s + timeout: 5s + retries: 3 restart: unless-stopped portfolio-manager: @@ -68,11 +89,18 @@ services: context: . dockerfile: services/portfolio-manager/Dockerfile env_file: .env + ports: + - "8083:8083" depends_on: redis: condition: service_healthy postgres: condition: service_healthy + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8083/health')"] + interval: 10s + timeout: 5s + retries: 3 restart: unless-stopped prometheus: -- cgit v1.2.3