26 lines
1.4 KiB
YAML
26 lines
1.4 KiB
YAML
services:
|
|
# ── Hostinger DNS Sync ───────────────────────────────────────────────────────
|
|
hostinger-dns-sync:
|
|
env_file:
|
|
- stack.env
|
|
build: . # use `image: ghcr.io/yourrepo/hostinger-dns-sync:latest` after pushing
|
|
container_name: hostinger-dns-sync
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # read-only access to Docker events
|
|
environment:
|
|
# ── Required ──────────────────────────────────────────────────────────────
|
|
HOSTINGER_API_KEY: ${HOSTINGER_API_KEY} # set in .env
|
|
DOMAIN: ${DOMAIN} # e.g. example.com
|
|
|
|
# ── Optional ──────────────────────────────────────────────────────────────
|
|
# PUBLIC_IP: "1.2.3.4" # override auto-detection
|
|
RECORD_TYPE: "A" # A or AAAA
|
|
TTL: "3600"
|
|
DELETE_ORPHANS: "true" # set "true" to remove DNS records no longer in Traefik
|
|
DRY_RUN: "false" # set "true" to preview changes without applying them
|
|
|
|
networks:
|
|
traefik-network:
|
|
external: true
|