This commit is contained in:
30
compose.yml
Normal file
30
compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# -------- docker-compose.yml --------
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
api:
|
||||
build: .
|
||||
container_name: ipblock-api
|
||||
depends_on:
|
||||
- redis
|
||||
environment:
|
||||
# Beispiel – mehrere Listen in einer Kategorie „spam“
|
||||
BLOCKLIST_SOURCES: |
|
||||
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
|
||||
TTL_HOURS: "720"
|
||||
ports:
|
||||
- "8080:8080" # <host>:<container>
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: ipblock-redis
|
||||
command: ["redis-server", "--save", "", "--appendonly", "no"] # reine In-Memory-Instanz
|
||||
#volumes:
|
||||
#- redis-data:/data # falls du doch Persistence willst
|
||||
restart: unless-stopped
|
||||
|
||||
#volumes:
|
||||
#redis-data:
|
||||
Reference in New Issue
Block a user