mirror of
https://github.com/activecm/rita
synced 2026-06-08 13:02:45 +00:00
309171c9aa
* simplified installer, removed ansible and remote installs, updated ci * Update ci.yml
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
volumes:
|
|
clickhouse_persistent:
|
|
networks:
|
|
rita-network: {}
|
|
services:
|
|
rita:
|
|
image: ghcr.io/activecm/rita:${RITA_VERSION:-latest}
|
|
build: .
|
|
depends_on:
|
|
clickhouse:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ${CONFIG_FILE:-/etc/rita/config.hjson}:/config.hjson
|
|
- ${CONFIG_DIR:-/etc/rita}/http_extensions_list.csv:${CONFIG_DIR:-/etc/rita}/http_extensions_list.csv
|
|
- ${CONFIG_DIR:-/etc/rita}/threat_intel_feeds:${CONFIG_DIR:-/etc/rita}/threat_intel_feeds
|
|
- /opt/rita/.env:/.env
|
|
links:
|
|
- "clickhouse:db"
|
|
- "syslog-ng:syslogng"
|
|
environment:
|
|
- DB_ADDRESS=db:9000
|
|
- TERM=xterm-256color
|
|
|
|
syslog-ng:
|
|
image: lscr.io/linuxserver/syslog-ng:latest
|
|
container_name: rita-syslog-ng
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Etc/UTC
|
|
volumes:
|
|
# TODO: run the cron on the host, not in the container since this seems to cause issues
|
|
- ${CONFIG_DIR:-/etc/rita}/logger-cron:/etc/cron.d/logger-cron
|
|
- ${CONFIG_DIR:-/etc/rita}/syslog-ng.conf:/config/syslog-ng.conf
|
|
- ${APP_LOGS:-/var/log/rita}:/config/logs/rita
|
|
# ports:
|
|
# - 514:5514/udp
|
|
# - 601:6601/tcp
|
|
# - 6514:6514/tcp
|
|
expose:
|
|
- 5514/udp
|
|
- 6601/tcp
|
|
restart: unless-stopped
|
|
clickhouse:
|
|
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION?"Missing ClickHouse version"}
|
|
container_name: rita-clickhouse
|
|
healthcheck:
|
|
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
|
|
interval: 3s
|
|
start_period: 1s
|
|
retries: 30
|
|
restart: unless-stopped
|
|
expose:
|
|
- 9000
|
|
# ports:
|
|
# - 127.0.0.1:8123:8123
|
|
# - 127.0.0.1:9000:9000
|
|
volumes:
|
|
- type: bind
|
|
source: /etc/localtime
|
|
target: /etc/localtime
|
|
read_only: true
|
|
- clickhouse_persistent:/var/lib/clickhouse
|
|
# - /tmp/clickhouse_logs:/var/log/clickhouse-server
|
|
- ${CONFIG_DIR:-/etc/rita}/config.xml:/etc/clickhouse-server/users.d/custom_config.xml
|
|
ulimits:
|
|
nproc: 65535
|
|
nofile:
|
|
soft: 131070
|
|
hard: 131070 |