/
docker-compose.yml
56 lines (52 loc) · 1.7 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
version: '3.5'
services:
# ==================================================
# Intrusion-monitor
# ==================================================
intrusion-monitor:
image: afonsoc12/intrusion-monitor:latest
container_name: intrusion-monitor
depends_on:
influxdb:
condition: service_healthy
environment:
- TZ=${INTRUSION_MONITOR_TZ}
- API_KEY=${INTRUSION_MONITOR_API_KEY}
- INFLUXDB_HOST=${INTRUSION_MONITOR_INFLUXDB_HOST}
- INFLUXDB_PORT=${INTRUSION_MONITOR_INFLUXDB_PORT}
- INFLUXDB_DATABASE=${INTRUSION_MONITOR_INFLUXDB_DATABASE}
- INFLUXDB_USER=${INTRUSION_MONITOR_INFLUXDB_USER}
- INFLUXDB_PASSWORD=${INTRUSION_MONITOR_INFLUXDB_PASSWORD}
- OPERATION_MODE=${INTRUSION_MONITOR_OPERATION_MODE}
- LOG_LEVEL=${INTRUSION_MONITOR_LOG_LEVEL}
volumes:
- ${INTRUSION_MONITOR_AUTH_LOG}:/watchdog/log/auth.log
ports:
- 7007:7007
networks:
- monitoring
restart: ${RESTART_POLICY}
# ==================================================
# InfluxDB
# ==================================================
influxdb:
# Don't use InfluxDB v2, as I haven't tested it yet. This is the latest of v1.X
image: influxdb:1.8.4
container_name: influxdb
healthcheck: # Allow influx to start before intrusion-monitor
test: ["CMD", "curl", "-f", "http://influxdb:8086/health"]
interval: 10s
timeout: 10s
retries: 5
start_period: 5s
volumes:
- ${APPDATA_PATH}/influxdb:/var/lib/influxdb
ports:
- 8086:8086
networks:
- monitoring
restart: ${INTRUSION_MONITOR_RESTART_POLICY}
networks:
monitoring:
name: monitoring
driver: bridge