-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocker-compose.rate_limiter.yml
63 lines (59 loc) · 1.6 KB
/
docker-compose.rate_limiter.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"
services:
gateway:
depends_on:
- dapi_api
- dapi_core_streams
- drive_abci
- gateway_rate_limiter
gateway_rate_limiter:
image: ${PLATFORM_GATEWAY_RATE_LIMITER_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Gateway rate limiter"
restart: unless-stopped
logging: *default-logging
command: /bin/ratelimit
depends_on:
- gateway_rate_limiter_redis
networks:
- gateway_rate_limiter
volumes:
- ${DASHMATE_HOME_DIR:?err}/${CONFIG_NAME:?err}/platform/gateway/rate_limiter/rate_limiter.yaml:/data/ratelimit/config/config.yaml:ro
environment:
- LOG_LEVEL=info
- LOG_FORMAT=text
- BACKEND_TYPE=redis
- REDIS_SOCKET_TYPE=tcp
- REDIS_URL=gateway_rate_limiter_redis:6379
- RUNTIME_ROOT=/data
- RUNTIME_SUBDIRECTORY=ratelimit
- RUNTIME_WATCH_ROOT=false
- DISABLE_STATS=${PLATFORM_GATEWAY_RATE_LIMITER_METRICS_DISABLED:?err}
- STATSD_HOST=gateway_rate_limiter_metrics
- STATSD_PORT=9125
- CONFIG_TYPE=FILE
- GRPC_MAX_CONNECTION_AGE=1h
- GRPC_MAX_CONNECTION_AGE_GRACE=10m
- GRPC_PORT=8081
expose:
- 8081
profiles:
- platform
gateway_rate_limiter_redis:
labels:
org.dashmate.service.title: "Gateway rate limiter storage"
restart: unless-stopped
logging: *default-logging
image: redis:alpine
expose:
- 6379
networks:
- gateway_rate_limiter
profiles:
- platform