Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add demo environment instructions and docker-config files #3295

Merged
merged 6 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Considerations and guidance for Falco adopters:

5. Integrate with output destinations: Integrate Falco with SIEM, data lake systems, or other preferred output destinations to establish a robust foundation for comprehensive data analysis and enable effective incident response workflows.

### Demo Environment
A demo environment is provided via a docker-compose file that can be started on a docker host which includes falco, falcosidekick, falcosidekick-ui and its required redis database. For more information see the [docker-compose section](docker/docker-compose/)
bbl232 marked this conversation as resolved.
Show resolved Hide resolved

## How to Contribute

Expand Down
15 changes: 15 additions & 0 deletions docker/docker-compose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Warning
This environment is provided for demonstration purposes only and does not represent a production ready deployment of falco
bbl232 marked this conversation as resolved.
Show resolved Hide resolved

# Components
The components that this docker-compose file spins up are falco, falcosidekick, falcosidekick-ui and a redis database
bbl232 marked this conversation as resolved.
Show resolved Hide resolved

# Running
To start this environment run `docker-compose up`
bbl232 marked this conversation as resolved.
Show resolved Hide resolved
Note: You may need to use sudo for falco to start correctly.
bbl232 marked this conversation as resolved.
Show resolved Hide resolved

# Cleaning up
To clean up run `docker-compose rm`
bbl232 marked this conversation as resolved.
Show resolved Hide resolved

# Generating events
If you'd like to generate events that will trigger rules and show up in the UI you can run `docker run -it --rm falcosecurity/event-generator run syscall --loop`
11 changes: 11 additions & 0 deletions docker/docker-compose/config/http_output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Stable] `http_output`
#
# Send logs to an HTTP endpoint or webhook.
#
# When using falcosidekick, it is necessary to set `json_output` to true.
json_output: true
json_include_output_property: true
http_output:
enabled: true
url: "http://falco-sidekick:2801/"

34 changes: 34 additions & 0 deletions docker/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: "3"
services:
falco:
container_name: falco
cap_drop:
- all
cap_add:
- sys_admin
- sys_resource
- sys_ptrace
volumes:
- /var/run/docker.sock:/host/var/run/docker.sock
- /proc:/host/proc:ro
- /etc:/host/etc:ro
- ./config/http_output.yml:/etc/falco/config.d/http_output.yml
image: falcosecurity/falco-no-driver:latest

sidekick:
container_name: falco-sidekick
image: falcosecurity/falcosidekick
environment:
WEBUI_URL: http://falco-webui:2802

webui:
container_name: falco-webui
image: falcosecurity/falcosidekick-ui:2.2.0
ports:
- 2802:2802
depends_on:
- redis
command: ['-r', 'redis:6379', '-d']

redis:
image: redis/redis-stack:7.2.0-v11
Loading