-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
trader-stream-ee:
image: trader-stream-ee:aeron
build:
context: .
dockerfile: Dockerfile
container_name: trader-stream-ee
ports:
- "8080:8080"
# Increase shared memory for Aeron IPC transport
shm_size: 512m
# JVM options are set in Dockerfile by default (C4 GC with 2g heap)
# Uncomment below to override with custom settings:
# environment:
# - JAVA_OPTS=-XX:+UseZGC -Xms4g -Xmx4g -Xlog:gc*:stdout:time,uptime
environment:
- TRADER_INGESTION_MODE=${MODE:-AERON}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/trader-stream-ee/api/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
networks:
- trader-network
# Optional: Grafana for monitoring GC metrics (commented out by default)
# grafana:
# image: grafana/grafana:latest
# container_name: trader-grafana
# ports:
# - "3000:3000"
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=admin
# networks:
# - trader-network
networks:
trader-network:
driver: bridge