diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 16:52:03 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 16:52:03 +0900 |
| commit | e971d19678a7ce94666e5887909823cdd2a6cab2 (patch) | |
| tree | 9f7baf1b72e52cbe003251dc68e8201169cf03ce /docker-compose.yml | |
| parent | ac6d98b7790506128cb3f65dfdbb2d9d9ddce555 (diff) | |
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
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 28 |
1 files changed, 28 insertions, 0 deletions
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: |
