Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
# Defaults are set in docker-compose.yml if these are unset.
# Copy to .env and adjust if you need a different reviewed version.

# Image versions
REDIS_VERSION=7.4
JAEGER_VERSION=2.22.0
PROMETHEUS_VERSION=v3.13.4
GRAFANA_VERSION=13.2.4

# Gateway resource limits (applied independently to each gateway)
GATEWAY_CPUS=1.0
GATEWAY_MEMORY=512M

# Redis resource limits
REDIS_MEMORY=256M
Binary file modified README.md
Binary file not shown.
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ services:
redis:
image: redis:${REDIS_VERSION:-7.4}-alpine
container_name: traffic-control-redis
deploy:
resources:
limits:
memory: "${REDIS_MEMORY:-256M}"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
Expand All @@ -23,6 +27,11 @@ services:
gateway-1:
image: distributed-traffic-control:latest
container_name: traffic-control-gateway-1
deploy:
resources:
limits:
cpus: "${GATEWAY_CPUS:-1.0}"
memory: "${GATEWAY_MEMORY:-512M}"
depends_on:
redis:
condition: service_healthy
Expand All @@ -49,6 +58,11 @@ services:
gateway-2:
image: distributed-traffic-control:latest
container_name: traffic-control-gateway-2
deploy:
resources:
limits:
cpus: "${GATEWAY_CPUS:-1.0}"
memory: "${GATEWAY_MEMORY:-512M}"
depends_on:
redis:
condition: service_healthy
Expand All @@ -75,6 +89,11 @@ services:
gateway-3:
image: distributed-traffic-control:latest
container_name: traffic-control-gateway-3
deploy:
resources:
limits:
cpus: "${GATEWAY_CPUS:-1.0}"
memory: "${GATEWAY_MEMORY:-512M}"
depends_on:
redis:
condition: service_healthy
Expand Down
Loading