-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
124 lines (118 loc) · 2.74 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.9'
services:
postgresql:
container_name: otlp_db
image: postgres:14.2-alpine
hostname: postgresql.otlp-blueprint.local
environment:
- POSTGRES_USER=otlpuser
- POSTGRES_PASSWORD=otlppassword
- POSTGRES_DB=tododb
networks:
- otlp-network
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"
]
interval: 10s
timeout: 5s
retries: 5
ports:
- 5432:5432
# volumes:
# - ./postgresql/data:/var/lib/postgresql/data
# - ./postgresql/docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
backend:
container_name: backend
hostname: backend.otlp-blueprint.local
build:
context: ./
dockerfile: Backend.dockerfile
target: source
# env_file:
# - ./pkg-svcs/backend/.env
environment:
- APP_VERSION=1.0.0
ports:
- "3000:3000"
networks:
- otlp-network
depends_on:
- postgresql
- jaeger
volumes:
- ./pkg-svcs/backend:/app/backend
command: "npm run start:container"
frontend:
container_name: frontend
hostname: frontend.otlp-blueprint.local
build:
context: ./
dockerfile: Frontend.dockerfile
target: source
# env_file:
# - ./pkg-svcs/frontend/.env
ports:
- "8080:8080"
networks:
- otlp-network
depends_on:
- backend
- postgresql
- jaeger
volumes:
- ./pkg-svcs/frontend:/app/frontend
command: "npm run start:container"
jaeger:
image: jaegertracing/all-in-one:1.43.0
hostname: jaeger-service.otlp-blueprint.local
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16685:16685"
- "16686:16686"
- "14250:14250"
- "14268:14268"
- "14269:14269"
- "9411:9411"
networks:
- otlp-network
prometheus:
image: prom/prometheus:v2.43.0
hostname: prometheus-service.otlp-blueprint.local
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
ports:
- "9090:9090"
restart: unless-stopped
volumes:
- ./:/etc/prometheus
networks:
- otlp-network
collector:
image: otel/opentelemetry-collector:0.74.0
hostname: collector.otlp-blueprint.local
command: [ "--config=/conf/collector-config.yaml" ]
volumes:
- ./collector-config.yaml:/conf/collector-config.yaml
ports:
- "9464:9464"
- "55680:55680"
- "55681:55681"
- "13133:13133"
- "4317:4317"
- "4318:4318"
depends_on:
- jaeger
- prometheus
networks:
- otlp-network
volumes:
postgresql:
external: false
networks:
otlp-network: