Skip to content

Commit

Permalink
Elasticsearch and logstash configuration integrated in src
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAlcolea committed Nov 15, 2023
1 parent 0aeaf25 commit 05c6814
Show file tree
Hide file tree
Showing 47 changed files with 150 additions and 2,771 deletions.
41 changes: 12 additions & 29 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ services:
depends_on:
app:
condition: service_healthy



deletion:
build:
context: deletion
Expand Down Expand Up @@ -187,35 +186,25 @@ services:
interval: 5s
timeout: 30s
retries: 30

# elasticsearch_setup:
# build:
# context: es/setup/
# dockerfile: Dockerfile
# env_file: .env
# environment:
# - ES_USER=$ES_USER
# - ES_PASSWORD=$ES_PASSWORD
# restart: "no"
# depends_on:
# elasticsearch:
# condition: service_healthy

logstash_setup:
build:
context: logstash/setup/
dockerfile: Dockerfile
es_logstash_setup:
image: ai4eu_server
container_name: es_logstash_setup
env_file: .env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
- ES_USER=$ES_USER
- ES_PASSWORD=$ES_PASSWORD
volumes:
- ./src/setup/logstash:/app
- ./src:/app
- ./logstash:/logstash
command: >
python generate_logstash_config_files.py
/bin/bash -c "python setup/logstash/generate_logstash_config_files.py &&
python setup/elasticsearch/generate_elasticsearch_indices.py"
restart: "no"
depends_on:
elasticsearch:
condition: service_healthy

logstash:
build:
Expand Down Expand Up @@ -248,13 +237,7 @@ services:
target: /usr/share/logstash/sql
read_only: true
depends_on:
app:
condition: service_healthy
elasticsearch:
condition: service_healthy
# elasticsearch_setup:
# condition: service_completed_successfully
logstash_setup:
condition: service_completed_successfully
fill-db-with-examples:
condition: service_completed_successfully
es_logstash_setup:
condition: service_completed_successfully
17 changes: 0 additions & 17 deletions es/setup/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions es/setup/create_indices.sh

This file was deleted.

159 changes: 0 additions & 159 deletions es/setup/dataset.json

This file was deleted.

Loading

0 comments on commit 05c6814

Please sign in to comment.