[hw-8] add: comment service

This commit is contained in:
3ybacTuK
2025-07-26 23:47:18 +03:00
parent 6420eaf3d7
commit 6e0d90a6d5
29 changed files with 1249 additions and 725 deletions

View File

@@ -1,6 +1,8 @@
volumes:
prometheus_data: {}
grafana_data: {}
shard1-data: {}
shard2-data: {}
services:
cart:
@@ -41,6 +43,20 @@ services:
deploy:
replicas: 3
comments:
build:
context: .
dockerfile: comments/Dockerfile
depends_on:
postgres-comments-shard-1:
condition: service_started
postgres-comments-shard-2:
condition: service_started
ports:
- "8083:8083"
- "8084:8084"
- "8085:8085"
postgres-master:
image: gitlab-registry.ozon.dev/go/classroom-18/students/base/postgres:16
container_name: postgres-master