diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 14:16:13 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 14:16:13 +0900 |
| commit | 17540c99d5e28576a6642e23d7bd6b297513e2d8 (patch) | |
| tree | 64cbea0ebb2fd24e695654d5fa05fe6bf6dee032 | |
| parent | af8a9c0af9bdcbd2dc3f03c02fd1174ad0d28404 (diff) | |
feat: add news-collector service to Docker Compose
| -rw-r--r-- | docker-compose.yml | 21 |
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"] |
