-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.11 KB
/
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
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:
# Use an image built from the specified dockerfile in the current directory.
context: .
dockerfile: Dockerfile
environment:
- MONGO_URL=mongodb://mongo:27017
- MONGO_TODO_DB=TodoDb
- MONGO_MAX_POOL_SIZE=10
- MONGO_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:
- mongo
- jaeger
mongo:
image: mongo:3
ports:
- '27017:27017'
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "5775:5775/udp"
- "16686:16686"