All checks were successful
release-tag / release-image (push) Successful in 1m30s
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
|
||
services:
|
||
api:
|
||
image: git.send.nrw/sendnrw/flod:latest
|
||
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
|
||
ROLE: worker
|
||
TTL_HOURS: "720"
|
||
ports:
|
||
- "8080:8080" # <host>:<container>
|
||
restart: unless-stopped
|
||
|
||
redis:
|
||
image: redis:7-alpine
|
||
container_name: ipblock-redis
|
||
ports:
|
||
- "6379:6379"
|
||
networks:
|
||
- flod_nw
|
||
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:
|
||
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:
|