-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.redis.yml
46 lines (44 loc) · 1.11 KB
/
docker-compose.redis.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
version: '3'
# Define services
services:
# App Services
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "5000:80"
depends_on:
- api
api:
# Configuration for building the docker image for the service
build:
context: . # Use an image built from the specified dockerfile in the current directory.
dockerfile: ./deployments/redis/Dockerfile
environment:
- REDIS_URL=redis:6379
- REDIS_TODO_DB=0
- REDIS_MAX_POOL_SIZE=10
- REDIS_CONNECTION_TIMEOUT=20
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_PARAM=1
- JAEGER_SAMPLER_TYPE=probabilistic
- JAEGER_SERVICE_NAME=go-todo-app
- GIN_MODE=debug
ports:
- "8080:8080" # Forward the exposed port 8080 on the container to port 8080 on the host machine
restart: unless-stopped
depends_on:
- redis
- jaeger
redis:
image: redis:6.2.1-alpine3.13
ports:
- '6379:6379'
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "5775:5775/udp"
- "16686:16686"