Skip to content

Commit

Permalink
- env vars removed from environment block in docker compose yaml as…
Browse files Browse the repository at this point in the history
… they are coming from the dot env file anyway

- Kibana Dockerfile updated accordingly
  • Loading branch information
bulletinmybeard committed Mar 30, 2024
1 parent 888f4b9 commit 9660663
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ services:
dockerfile: docker/audit-logger/Dockerfile
env_file:
- .env
environment:
- CONFIG_FILE_PATH=${CONFIG_FILE_PATH}
- ELASTIC_USERNAME=${ELASTIC_USERNAME}
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- ELASTIC_URL=${ELASTIC_URL}
- ELASTIC_INDEX_NAME=${ELASTIC_INDEX_NAME}
- ELASTIC_HOSTS=${ELASTIC_HOSTS}
restart: unless-stopped
volumes:
- ./:/app
Expand All @@ -32,12 +25,6 @@ services:
- .env
environment:
- discovery.type=single-node
- PIPELINE_WORKERS=4
- LOG_LEVEL=debug
- MONITORING_ENABLED=enabled
- xpack.security.enabled=true
- ELASTIC_USERNAME=${ELASTIC_USERNAME}
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
ulimits:
memlock:
soft: -1
Expand All @@ -63,8 +50,6 @@ services:
- .env
environment:
- elasticsearch.hosts=elasticsearch:9200
- ELASTICSEARCH_USERNAME=${ELASTIC_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTIC_USERNAME}
restart: unless-stopped
volumes:
- sa_kibana_data:/usr/share/kibana/data
Expand Down
4 changes: 4 additions & 0 deletions docker/kibana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM arm64v8/kibana:${KIBANA_VERSION}

USER root

ENV \
ELASTICSEARCH_USERNAME=${ELASTIC_USERNAME} \
ELASTICSEARCH_PASSWORD=${ELASTIC_PASSWORD}

RUN mkdir -p /opt/shell-scripts

COPY ./*.sh /opt/shell-scripts
Expand Down

0 comments on commit 9660663

Please sign in to comment.