-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
84 lines (77 loc) · 1.7 KB
/
docker-compose.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3'
services:
postgres:
image: postgres:13.2-alpine
environment:
- POSTGRES_USER=postgresuser
- POSTGRES_PASSWORD=postgrespassword
- POSTGRES_DB=spenmo
ports:
- 5432:5432
networks:
- spenmo
prometheus:
image: prom/prometheus:v2.27.1
ports:
- 9090:9090
volumes:
- ${PWD}/infrastructure/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- spenmo
grafana:
image: grafana/grafana:7.5.7
ports:
- 3000:3000
volumes:
- storage:/var/lib/grafana
networks:
- spenmo
jaeger:
image: jaegertracing/all-in-one:1.23
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 14250:14250
- 9411:9411
networks:
- spenmo
api:
image: indrasaputra/spenmo:latest
environment:
SERVICE_NAME: spenmo-api
PORT_GRPC: 8080
PORT_REST: 8081
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: postgresuser
POSTGRES_PASSWORD: postgrespassword
POSTGRES_NAME: spenmo
POSTGRES_MAX_OPEN_CONNS: 50
POSTGRES_MAX_CONN_LIFETIME: 10m
POSTGRES_MAX_IDLE_LIFETIME: 5m
JAEGER_ENABLED: "true"
JAEGER_HOST: jaeger
JAEGER_PORT: 6831
JAEGER_SAMPLING_TYPE: const
JAEGER_SAMPLING_PARAM: 1
JAEGER_LOG_SPANS: "true"
JAEGER_FLUSH_INTERVAL: 1
RATE_LIMIT_PER_SECOND: 100
RATE_BURST_PER_SECOND: 100
ports:
- 8080:8080
- 8081:8081
networks:
- spenmo
depends_on:
- postgres
volumes:
storage:
networks:
spenmo: