summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml28
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: