Files
activecm-rita/docker-compose.yml
T
Liza Tsibur 309171c9aa Simplify installer and update CI (#95)
* simplified installer, removed ansible and remote installs, updated ci

* Update ci.yml
2026-03-26 07:56:02 -06:00

67 lines
2.0 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:/deployment/http_extensions_list.csv
- ${CONFIG_DIR:-/etc/rita}/threat_intel_feeds:/deployment/threat_intel_feeds
- .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: 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
restart: unless-stopped
clickhouse:
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION?"Missing ClickHouse version"}
container_name: 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
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
- ${CONFIG_DIR:-/etc/rita}/timezone.xml:/etc/clickhouse-server/config.d/timezone.xml
ulimits:
nproc: 65535
nofile:
soft: 131070
hard: 131070