Sign inSign up

bigobject/elasticsearch-connector

By bigobject

Updated over 3 years ago

Image
0

1.0K

bigobject/elasticsearch-connector repository overview

After 1.2.0 version - Docker Compose file

 
version: '3'
services:
    els_bo:
        image: bigobject/bigobject
        container_name: els_bo
        environment:
            TZ: Asia/Taipei

    els_connector:            
        image: bigobject/elasticsearch-connector
        container_name: els_connector
        ports:
            - "9088:9088"
        volumes:
            - "ELS_Config_Directory":/config
        environment:
            TZ: Asia/Taipei
            ELS_CONN_ENDPOINT: "els_connector:9088"

    els:
        image: bigobject/elasticsearch
        container_name: els
        environment:
            TZ: Asia/Taipei
            discovery.type: single-node
            #xpack.security.enabled: "true"
            #xpack.license.self_generated.type: trial
            #ELASTIC_PASSWORD: "bigobject"

After 1.2.0 version - config.json

 
{
	"engines": {
		"Elasticsearch": {
			"url": "http://els:9200",
			"max_return_size": 1000,
			"bigobject": [
				{
					"ip": "els_bo",
					"port": 9091
				}
			]
		}
	}
}

Before 1.2.0 version - Docker Compose file

 
version: '3'
services:
    els_bo:
        image: bigobject/bigobject
        container_name: els_bo
        restart: unless-stopped
        ports:
            - "23301:3306"
        volumes:
            - "BO_Directory":/srv/bo
        environment:
            TZ: Asia/Taipei
        networks:
            bo-net:
                ipv4_address: 10.5.0.3

    els_connector:            
        image: bigobject/elasticsearch-connector
        container_name: els_connector
        restart: unless-stopped
        volumes:
            - "ELS_Config_Directory":/config
        environment:
            TZ: Asia/Taipei
        networks:
            bo-net:
                ipv4_address: 10.5.0.5

    els:
        image: bigobject/elasticsearch
        container_name: els
        restart: unless-stopped
        volumes:
            - "ELS_Directory":/usr/share/elasticsearch/data
        environment:
            TZ: Asia/Taipei
            discovery.type: single-node
        networks:
            bo-net:
                ipv4_address: 10.5.0.7
networks:
    bo-net:
        driver: bridge
        ipam:
            config:
                - subnet: 10.5.0.0/16

Before 1.2.0 version - config.json

 
{
	"url": "10.5.0.5:9087",
	"Engines": {
		"Elasticsearch": {
			"url": "http://10.5.0.7:9200",
			"max_return_size": 1000,
			"bigobject": [
				{
					"ip": "10.5.0.3",
					"port": 9091
				}
			],
			"source": {
				".tmp_var": {
					"workspace": "",
					"columns": [
						{
							"column": "val",
							"name": "val",
							"type": "text",
							"keyword": true,
							"build": true
						}
					],
					"key": ""
				}
			}
		}
	}
}

Elasticsearch with Password

Docker Compose file

elasticsearch default user is "elastic"
 
version: '3'
services:
    els_bo:
        image: bigobject/bigobject
        container_name: els_bo
        restart: unless-stopped
        ports:
            - "23301:3306"
        volumes:
            - "BO_Directory":/srv/bo
        environment:
            TZ: Asia/Taipei
        networks:
            bo-net:
                ipv4_address: 10.5.0.3

    els_connector:            
        image: bigobject/elasticsearch-connector
        container_name: els_connector
        restart: unless-stopped
        volumes:
            - "ELS_Config_Directory":/config
        environment:
            TZ: Asia/Taipei
        networks:
            bo-net:
                ipv4_address: 10.5.0.5

    els:
        image: bigobject/elasticsearch
        container_name: els
        restart: unless-stopped
        volumes:
            - "ELS_Directory":/usr/share/elasticsearch/data
        environment:
            TZ: Asia/Taipei
            discovery.type: single-node
			xpack.security.enabled: "true"
			xpack.license.self_generated.type: trial
			ELASTIC_PASSWORD: "bigobject"
        networks:
            bo-net:
                ipv4_address: 10.5.0.7
networks:
    bo-net:
        driver: bridge
        ipam:
            config:
                - subnet: 10.5.0.0/16

config.json

 
{
	"url": "10.5.0.5:9087",
	"Engines": {
		"Elasticsearch": {
			"url": "http://10.5.0.7:9200",
			"max_return_size": 1000,
			"username": "elastic",
            "password": "bigobject",
			"bigobject": [
				{
					"ip": "10.5.0.3",
					"port": 9091
				}
			],
			"source": {
				".tmp_var": {
					"workspace": "",
					"columns": [
						{
							"column": "val",
							"name": "val",
							"type": "text",
							"keyword": true,
							"build": true
						}
					],
					"key": ""
				}
			}
		}
	}
}

Tag summary

Content type

Image

Digest

sha256:f0b374233

Size

6.9 MB

Last updated

over 3 years ago

docker pull bigobject/elasticsearch-connector