Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions infra/docker/docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ services:
- REDIS_STREAM_TICK_CONSUMERNAME=consumer-1
- REDIS_STREAM_TICK_MAXLENGTH=200000
- REDIS_STREAM_TICK_LAGWARNINGRATIO=0.8
- LOGGING_LEVEL_COM_COINFLOW=INFO
- LOGGING_LEVEL_ORG_HIBERNATE_SQL=WARN
entrypoint: [ "sh", "-c", "java -Dspring.config.name=application-consumer -Dspring.profiles.active=prod -Xms256m -Xmx384m -jar app.jar" ]
depends_on:
postgres:
Expand All @@ -99,6 +101,11 @@ services:
timeout: 3s
retries: 20
start_period: 30s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: always

collector-app:
Expand All @@ -120,12 +127,18 @@ services:
- BINANCE_WEBSOCKET_TRADESTREAMSUFFIX=@trade
- REDIS_STREAM_TICK_STREAMKEY=tick:raw
- REDIS_STREAM_TICK_MAXLENGTH=200000
- LOGGING_LEVEL_COM_COINFLOW=INFO
entrypoint: [ "sh", "-c", "java -Dspring.config.name=application-collector -Dspring.profiles.active=prod -Xms128m -Xmx256m -jar app.jar" ]
depends_on:
consumer-app:
condition: service_healthy
redis:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: always

# ──────────────────────────────────────────────
Expand Down
Loading