Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
coutoPL committed Jul 28, 2024
1 parent d74d85f commit 678cfe4
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
14 changes: 14 additions & 0 deletions elk-ror/conf/es/readonlyrest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ readonlyrest:
ror_kbn_auth:
name: "kbn1"

- name: "Reporting tests: user2"
auth_key: user2:dev
kibana:
index: ".kibana_user2"
access: rw
indices: [ "invoices" ]

- name: "Reporting tests: user3"
auth_key: user3:dev
kibana:
index: ".kibana_user3"
access: rw
indices: [ "invoices" ]

# USERS TO GROUPS ############
users:
- username: admin
Expand Down
15 changes: 15 additions & 0 deletions elk-ror/conf/kbn/kbn-proxy-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
events { }

http {
upstream kbn-ror {
server kbn-ror:5601;
}

server {
listen 80;

location / {
proxy_pass http://kbn-ror;
}
}
}
25 changes: 22 additions & 3 deletions elk-ror/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,38 @@ services:
depends_on:
es-ror:
condition: service_healthy
ports:
- "5601:5601"
deploy:
mode: replicated
replicas: 3
environment:
ELASTIC_USER_PASSWORD: elastic
ES_API_URL: http://es-ror:9200
# todo: healthcheck
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:5601/api/status" ]
interval: 10s
timeout: 10s
retries: 30
start_period: 60s
networks:
- es-ror-network
ulimits:
memlock:
soft: -1
hard: -1

kbn-proxy:
build:
context: ../.
dockerfile: elk-ror/images/kbn/Proxy-Dockerfile
depends_on:
kbn-ror:
condition: service_healthy
ports:
- "5601:80"
# todo: healthcheck
networks:
- es-ror-network

networks:
es-ror-network:
driver: bridge
3 changes: 3 additions & 0 deletions elk-ror/images/kbn/Proxy-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:latest

COPY elk-ror/conf/kbn/kbn-proxy-nginx.conf /etc/nginx/nginx.conf
2 changes: 1 addition & 1 deletion elk-ror/stop-and-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ cd "$(dirname "$0")"

echo "Stopping and cleaning environment the tests were being run at ..."

docker-compose rm --stop --force
docker compose rm --stop --force

echo "Done!"

0 comments on commit 678cfe4

Please sign in to comment.