This repository has been archived on 2026-10-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

21 lines
713 B
YAML
Raw Permalink Normal View History

2026-05-20 13:48:24 +02:00
services:
2026-05-20 23:55:27 +02:00
karldns:
2026-05-20 13:48:24 +02:00
build: .
restart: unless-stopped
env_file:
- .env
2026-05-20 23:55:27 +02:00
environment:
DDNS_DATABASE: ${DDNS_DATABASE:-/data/ddns.sqlite3}
2026-05-20 13:48:24 +02:00
ports:
- "8080:8080"
volumes:
2026-05-20 23:55:27 +02:00
- karldns-data:/data
# Keep the default single-worker command unless multi-worker rate limiting has been tested.
2026-05-20 13:48:24 +02:00
healthcheck:
2026-05-20 18:33:48 +02:00
test: ["CMD", "python", "-c", "import os, urllib.parse, urllib.request; host=urllib.parse.urlparse(os.environ['DDNS_PUBLIC_BASE_URL']).hostname; req=urllib.request.Request('http://127.0.0.1:8080/healthz', headers={'Host': host}); urllib.request.urlopen(req, timeout=2).read()"]
2026-05-20 13:48:24 +02:00
interval: 30s
timeout: 5s
retries: 3
volumes:
2026-05-20 23:55:27 +02:00
karldns-data: