集成 Vector 日志处理

This commit is contained in:
2025-03-03 17:14:45 +08:00
parent cc0b74c5c2
commit 4b3cb8e354
8 changed files with 74 additions and 23 deletions

View File

@@ -41,10 +41,27 @@ services:
- postgres
restart: always
vector:
container_name: proxy-server-dev-vector
build:
context: ./vector
dockerfile: Dockerfile
ports:
- "8686:8686"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/log/vector:/temp/vector
networks:
- proxy-server-test
depends_on:
- service
restart: always
networks:
proxy-server-test:
driver: bridge
volumes:
postgres-data:
name: proxy-server-test-postgres-data
name: proxy-server-test-postgres-data