Draft: big refactor

This commit is contained in:
2025-09-16 16:03:27 +08:00
parent f527230f1e
commit c4f2b0af25
42 changed files with 684 additions and 215 deletions

View File

@@ -1,9 +1,28 @@
---
services:
backend-otelcol:
image: otel/opentelemetry-collector-contrib
command:
- --config=/etc/otelcol/config.yaml
volumes:
- ./docker/otelcol/config.yaml:/etc/otelcol/config.yaml
backend:
build:
context: .
env_file: ./backend/.env
env_file: ./server/.env
ports:
- 8081:8080
restart: unless-stopped
depends_on:
- backend-otelcol
client-otelcol:
image: otel/opentelemetry-collector-contrib
command:
- --config=/etc/otelcol/config.yaml
ports:
- 4317:4317
- 4318:4318
volumes:
- ./docker/otelcol/config.yaml:/etc/otelcol/config.yaml