-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 2 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
volumes:
clickhouse_persistent:
networks:
rita-network: {}
services:
rita:
# image:
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
- .env:/.env
# - ${LOGS:?"You must provide a directory for logs to be read from"}:/logs:ro
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