Files
flod/compose.yml
jbergner 99053f35d0
All checks were successful
release-tag / release-image (push) Successful in 1m31s
fixes network, added newt, fixed Dockerfile and Workflow
2025-06-09 16:40:50 +02:00

49 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -------- docker-compose.yml --------
version: "3.9"
services:
api:
build: .
container_name: ipblock-api
networks:
- flod_nw
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
networks:
- flod_nw
command: ["redis-server", "--save", "", "--appendonly", "no"] # reine In-Memory-Instanz
#volumes:
#- redis-data:/data # falls du doch Persistence willst
restart: unless-stopped
newt:
image: fosrl/newt
container_name: newt
networks:
- flod_nw
restart: unless-stopped
environment:
- PANGOLIN_ENDPOINT=
- NEWT_ID=
- NEWT_SECRET=
networks:
flod_nw
#volumes:
#redis-data: