Skip to content

Commit

Permalink
Working docker compose file for ECS generator
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Dec 11, 2024
1 parent ef1dd31 commit 8827723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 3 additions & 9 deletions docker/ecs/ecs.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
services:
wazuh-ecs-generator:
image: wazuh-ecs-generator:${VERSION}
container_name: wazuh-ecs-generator_{VERSION}
image: wazuh-ecs-generator
container_name: wazuh-ecs-generator
build:
context: ./../..
dockerfile: ${REPO_PATH}/docker/ecs/images/Dockerfile
volumes:
- source:/source/ecs
#entrypoint: ["/bin/bash", "/home/wazuh-indexer/entrypoint.sh"]
# working_dir: /home/wazuh-indexer
- ${REPO_PATH}/ecs:/source/ecs
environment:
- ECS_MODULE=alerts

volumes:
source:
driver: ${REPO_PATH}/ecs
2 changes: 2 additions & 0 deletions docker/ecs/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ADD docker/ecs/images/generate.sh /ecs/generate.sh
# This directory will be attached to a volume
RUN mkdir -p /source/ecs

VOLUME /source/ecs

RUN chmod +x /ecs/generate.sh

WORKDIR /ecs
Expand Down

0 comments on commit 8827723

Please sign in to comment.