Skip to content

Commit

Permalink
✨(backends) add graylog service
Browse files Browse the repository at this point in the history
LDP backends is available for tests.But until now, no service was
available in the project. We have implemented a graylog service for it.
  • Loading branch information
quitterie-lcs committed Sep 29, 2021
1 parent 7742268 commit f368ea9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ run: \
run-all: ## start all supported local backends
run-all: \
run-es \
run-graylog \
run-swift
.PHONY: run-all

Expand All @@ -123,6 +124,12 @@ run-es: ## start elasticsearch backend
@$(COMPOSE_RUN) dockerize -wait tcp://elasticsearch:9200 -timeout 60s
.PHONY: run-es

run-graylog: ## start graylog backend
@$(COMPOSE) up -d graylog graylog_elasticsearch graylog_mongo
@echo "Waiting for graylog to be up and running..."
@$(COMPOSE_RUN) dockerize -wait tcp://graylog:9000 -timeout 60s
.PHONY: run-graylog

run-swift: ## start swift backend
@$(COMPOSE) up -d swift
@echo "Waiting for swift to be up and running..."
Expand Down
43 changes: 42 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"

services:
app:
Expand Down Expand Up @@ -37,6 +37,47 @@ services:
environment:
KS_SWIFT_PUBLIC_URL: http://127.0.0.1:49177

graylog_mongo:
container_name: mongo
image: mongo:4.2
networks:
- default

graylog_elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9300:9300
deploy:
resources:
limits:
memory: 1g
networks:
- default

graylog:
image: graylog/graylog:4.0
environment:
- GRAYLOG_HTTP_EXTERNAL_URI=http://localhost:9000/
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9300 -- /docker-entrypoint.sh
networks:
- default
depends_on:
- graylog_mongo
- graylog_elasticsearch
ports:
- 9000:9000
- 12201:12201

# -- tools
dockerize:
image: jwilder/dockerize
Expand Down

0 comments on commit f368ea9

Please sign in to comment.