新增 otel 推送日志
This commit is contained in:
@@ -7,8 +7,15 @@ services:
|
||||
volumes:
|
||||
- ./gost/gost.yaml:/etc/gost/gost.yaml
|
||||
- ./gost/logs:/var/log/gost
|
||||
command: >
|
||||
-api $GOST_USERNAME:$GOST_PASSWORD@:9700
|
||||
restart: unless-stopped
|
||||
|
||||
otel-collector:
|
||||
image: otel/opentelemetry-collector-contrib:0.153.0
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./otel/collector.yaml:/etc/otelcol-contrib/config.yaml
|
||||
environment:
|
||||
GOST_LOG_ENDPOINT: ${GOST_LOG_ENDPOINT}
|
||||
restart: unless-stopped
|
||||
|
||||
caddy:
|
||||
@@ -16,4 +23,8 @@ services:
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
environment:
|
||||
GOST_API_DOMAIN: ${GOST_API_DOMAIN}
|
||||
GOST_API_USERNAME: ${GOST_API_USERNAME}
|
||||
GOST_API_PASSWORD: ${GOST_API_PASSWORD}
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user