-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (37 loc) · 1014 Bytes
/
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
version: "3"
services:
nodejs_express:
build:
context: .
container_name: cube_nodejs_express_express
environment:
# tell the app that it is running in docker compose
- CUBE_DOCKER_COMPOSE=true
- OTEL_SERVICE_NAME=cube_sample_nodejs_express
- OTEL_EXPORTER_OTLP_COMPRESSION=gzip
- NODE_OPTIONS=--require ./tracing.js
# print traces on console
- OTEL_LOG_LEVEL=debug
# send traces to CubeAPM
# - OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://host.docker.internal:4318/v1/traces
ports:
- "8000:8000"
depends_on:
- mysql
- redis
restart: always
mysql:
image: mysql:8.0
container_name: cube_nodejs_express_mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=test
volumes:
- cube_nodejs_express_mysql:/var/lib/mysql
ports:
- "3306:3306"
redis:
image: redis:alpine3.18
container_name: cube_nodejs_express_redis
volumes:
cube_nodejs_express_mysql: