mirror of
https://github.com/netsampler/goflow2.git
synced 2024-05-06 15:54:52 +00:00
This commit resolves an issue with the mapping between the ClickHouse schema and the flow.proto schema. In 3326554, the casing of the proto fields was updated, but the ClickHouse column names were not also updated, resulting in the ClickHouse Kafka engine only being able to successfully deserialize fields that without an underscore. Also updates the provisioned dashboards. Versions of the tools are also updated. Co-authored-by: lspgn <lspgn@users.noreply.github.com>
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
version: "3"
|
|
services:
|
|
goflow2:
|
|
build:
|
|
context: ../../
|
|
dockerfile: Dockerfile
|
|
args:
|
|
VERSION: compose
|
|
LDFLAGS: -X main.version=compose
|
|
image: netsampler/goflow2
|
|
user: root # because docker-compose mount as root
|
|
ports:
|
|
- '8080:8080'
|
|
- '6343:6343/udp'
|
|
- '2055:2055/udp'
|
|
command:
|
|
- -transport=file
|
|
- -transport.file=/var/log/goflow/goflow2.log
|
|
- -format=json
|
|
restart: always
|
|
logging:
|
|
driver: gelf
|
|
options:
|
|
gelf-address: "udp://localhost:12201"
|
|
tag: "flows"
|
|
volumes:
|
|
- logs:/var/log/goflow
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
|
|
environment:
|
|
- discovery.type=single-node
|
|
ports:
|
|
- 9200:9200
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:7.13.0
|
|
ports:
|
|
- 5601:5601
|
|
depends_on:
|
|
- elasticsearch
|
|
- logstash
|
|
logstash:
|
|
image: docker.elastic.co/logstash/logstash:7.13.0
|
|
user: root # because docker-compose mount as root
|
|
links:
|
|
- elasticsearch
|
|
volumes:
|
|
- ./logstash.conf:/etc/logstash/logstash.conf
|
|
- logs:/var/log/goflow
|
|
command: logstash -f /etc/logstash/logstash.conf
|
|
ports:
|
|
- 12201:12201/udp
|
|
depends_on:
|
|
- elasticsearch
|
|
volumes:
|
|
logs:
|