-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 928 Bytes
/
docker-compose.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
version: "3.8"
services:
redis:
container_name: rate-limiter_redis
image: redis:7.2.4-alpine3.19
env_file:
- path: ./.env
required: true
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- redis-data:/data
networks:
- default
k6:
container_name: rate-limiter_k6
image: grafana/k6:latest
ports:
- "6565:6565"
volumes:
- ./scripts/k6:/scripts
networks:
- default
environment:
- K6_WEB_DASHBOARD=true
api:
env_file:
- path: ./.env
required: true
container_name: rate-limiter_api
image: mathcale/goexpert-rate-limiter-challenge
build:
context: .
dockerfile: Dockerfile
ports:
- "${WEB_SERVER_PORT}:${WEB_SERVER_PORT}"
networks:
- default
environment:
- REDIS_HOST=redis
- REDIS_PORT=${REDIS_PORT}
volumes:
redis-data:
networks:
default: