This commit is contained in:
16
compose.yml
16
compose.yml
@@ -13,6 +13,7 @@ services:
|
||||
spam:https://ipv64.net/blocklists/ipv64_blocklist_firehole_l1.txt|https://rules.emergingthreats.net/blocklist/compromised-ips.txt
|
||||
# Redis-Adresse schon per Docker-Netzwerk korrekt:
|
||||
REDIS_ADDR: redis:6379
|
||||
ROLE: worker
|
||||
TTL_HOURS: "720"
|
||||
ports:
|
||||
- "8080:8080" # <host>:<container>
|
||||
@@ -21,21 +22,14 @@ services:
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: ipblock-redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- flod_nw
|
||||
command:
|
||||
- redis-server
|
||||
- --bind
|
||||
- 0.0.0.0
|
||||
- --protected-mode
|
||||
- "no" # nur nötig, wenn Port 6379 veröffentlicht wird
|
||||
- --save # leere save-Liste = kein RDB-Snapshot
|
||||
- "/data/dump.rdb" # ^^^
|
||||
- --appendonly
|
||||
- "no"
|
||||
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
volumes:
|
||||
- redis-data:/data # falls du doch Persistence willst
|
||||
- /home/groot/flod/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
restart: unless-stopped
|
||||
|
||||
newt:
|
||||
|
||||
Reference in New Issue
Block a user