summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 14:16:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 14:16:13 +0900
commit17540c99d5e28576a6642e23d7bd6b297513e2d8 (patch)
tree64cbea0ebb2fd24e695654d5fa05fe6bf6dee032 /docker-compose.yml
parentaf8a9c0af9bdcbd2dc3f03c02fd1174ad0d28404 (diff)
feat: add news-collector service to Docker Compose
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml21
1 files changed, 20 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index e981f74..63630ff 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -22,7 +22,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
- test: ["CMD-LINE", "pg_isready", "-U", "trading"]
+ test: ["CMD", "pg_isready", "-U", "trading"]
interval: 5s
timeout: 3s
retries: 5
@@ -122,6 +122,25 @@ services:
retries: 3
restart: unless-stopped
+ news-collector:
+ build:
+ context: .
+ dockerfile: services/news-collector/Dockerfile
+ env_file: .env
+ ports:
+ - "8084:8084"
+ depends_on:
+ redis:
+ condition: service_healthy
+ postgres:
+ condition: service_healthy
+ healthcheck:
+ test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8084/health')"]
+ interval: 10s
+ timeout: 5s
+ retries: 3
+ restart: unless-stopped
+
loki:
image: grafana/loki:latest
profiles: ["monitoring"]