-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (78 loc) · 2.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
98 lines (78 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.8'
services:
ionos-dyndns:
image: ionos-ddns-go:latest
container_name: ionos-dyndns
# Security
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE # Falls Port < 1024 verwendet wird
environment:
# API Credentials (REQUIRED)
API_PREFIX: ${API_PREFIX}
API_SECRET: ${API_SECRET}
# Domains (REQUIRED)
DOMAINS: "example.com,sub.example.com,*.wildcard.example.com"
# Network Configuration
IP_MODE: "BOTH" # IPV4, IPV6, BOTH
INTERFACE: "eth0" # Für IPv6 Local Interface
DNS_SERVERS: "1.1.1.1:53,8.8.8.8:53"
# Update Settings
INTERVAL: 300 # Sekunden zwischen Checks
DRY_RUN: "false" # true = keine Änderungen
# API Rate Limiting
HOURLY_RATE_LIMIT: 1200 # Max Requests/Stunde
MAX_CONCURRENT: 5 # Parallele Domain-Updates
# Logging
DEBUG: "false"
DEBUG_HTTP_RAW: "false" # Detailliertes HTTP Logging
LOG_MAX_LINES: 5000 # Max Log-Zeilen vor Rotation
# Localization
LANG: "de" # de, en, fr
TZ: "Europe/Berlin"
# Health Check
HEALTH_PORT: 8080
# Trigger Token (optional - für /api/trigger Security)
TRIGGER_TOKEN: ${TRIGGER_TOKEN:-}
volumes:
- ./config:/config
# Optional: Read-only volumes
# - ./config/lang:/config/lang:ro
tmpfs:
- /tmp
ports:
- "8080:8080" # Dashboard & API
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- dyndns-network
# Resource Limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
reservations:
cpus: '0.1'
memory: 32M
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
dyndns-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24