-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 878 Bytes
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
services:
gateway:
build:
context: .
dockerfile: Dockerfile
container_name: api-gateway
ports:
- "8081:8081"
environment:
- HOST=0.0.0.0
- PORT=8081
- REDIS_HOST=redis
- REDIS_PORT=6379
- RATE_LIMIT_RPM=60
- RATE_LIMIT_BURST=10
- AUTH_SERVICE_URL=http://host.docker.internal:8080
depends_on:
redis:
condition: service_healthy
networks:
- gateway-network
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: gateway-redis
ports:
- "6381:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- gateway-network
restart: unless-stopped
volumes:
redis_data:
networks:
gateway-network:
driver: bridge