-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.09 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
46
47
48
49
50
51
52
53
54
55
56
57
services:
coffeehouse:
image: coffeehouse
env_file:
- docker.env
depends_on:
- db
- nats
build:
context: .
dockerfile: ./Dockerfile
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
ports:
- 8080:8080
db:
image: postgres
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: coffeehousedb
ports:
- 5432:5432
volumes:
- coffeehouse:/var/lib/postgresql/data
nats:
image: nats
ports:
- 4222:4222
redis:
image: redis
ports:
- 6379:6379
jaeger:
image: jaegertracing/all-in-one:1.60
ports:
- 16686:16686
otel-collector:
image: otel/opentelemetry-collector-contrib:0.111.0
command: ["--config=/etc/otel-collector.yaml"]
volumes:
- ./otel-collector.yaml:/etc/otel-collector.yaml
ports:
- 4317:4317
volumes:
coffeehouse:
name: coffeehouse