Skip to content

Commit fd6fdea

Browse files
Update docker compose
1 parent 8226a34 commit fd6fdea

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
image: stefan96/heidpi-producer:latest
44
container_name: heidpi_producer
55
network_mode: host
6+
# platform: linux/amd64
67
security_opt:
78
- no-new-privileges
89
# pids_limit: 8192
@@ -18,16 +19,25 @@ services:
1819
- MAX_BUFFERED_LINES=32768
1920
- JA3_URL=https://sslbl.abuse.ch/blacklist/ja3_fingerprints.csv
2021
- SSL_SHA1_URL=https://sslbl.abuse.ch/blacklist/sslblacklist.csv
22+
healthcheck:
23+
test: ["CMD-SHELL", "pgrep -f /root/nDPId || exit 1"]
24+
interval: 1m
25+
timeout: 10s
26+
retries: 3
27+
start_period: 30s
28+
2129

2230
consumer:
2331
build:
2432
context: .
2533
dockerfile: Dockerfile.consumer
2634
#image: stefan96/heidpi-consumer:latest
2735
container_name: heidpi_consumer
36+
# platform: linux/amd64
2837
volumes:
2938
- ./heidpi-logs:/var/log/:rw
3039
- ./config.yml:/usr/src/app/config.yml:ro
40+
# - .../GeoLite2-City.mmdb:/tmp/city.mmdb:ro
3141
network_mode: host
3242
security_opt:
3343
- no-new-privileges
@@ -39,7 +49,8 @@ services:
3949
cpus: '1'
4050
memory: 2G
4151
depends_on:
42-
- producer
52+
producer:
53+
condition: service_healthy
4354
environment:
4455
- SHOW_DAEMON_EVENTS=1
4556
- SHOW_PACKET_EVENTS=1

0 commit comments

Comments
 (0)