chore: Update for my home server setup.
This commit is contained in:
@@ -1,24 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
# ── Traefik (example — adapt to your existing setup) ────────────────────────
|
|
||||||
traefik:
|
|
||||||
image: traefik:v3.1
|
|
||||||
command:
|
|
||||||
- "--api.insecure=true"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--providers.docker.exposedbydefault=false"
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
- "--entrypoints.websecure.address=:443"
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
|
||||||
- "8080:8080" # dashboard
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# ── Hostinger DNS Sync ───────────────────────────────────────────────────────
|
# ── Hostinger DNS Sync ───────────────────────────────────────────────────────
|
||||||
hostinger-dns-sync:
|
hostinger-dns-sync:
|
||||||
|
env_file:
|
||||||
|
- stack.env
|
||||||
build: . # use `image: ghcr.io/yourrepo/hostinger-dns-sync:latest` after pushing
|
build: . # use `image: ghcr.io/yourrepo/hostinger-dns-sync:latest` after pushing
|
||||||
container_name: hostinger-dns-sync
|
container_name: hostinger-dns-sync
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -33,15 +17,9 @@ services:
|
|||||||
# PUBLIC_IP: "1.2.3.4" # override auto-detection
|
# PUBLIC_IP: "1.2.3.4" # override auto-detection
|
||||||
RECORD_TYPE: "A" # A or AAAA
|
RECORD_TYPE: "A" # A or AAAA
|
||||||
TTL: "3600"
|
TTL: "3600"
|
||||||
DELETE_ORPHANS: "false" # set "true" to remove DNS records no longer in Traefik
|
DELETE_ORPHANS: "true" # set "true" to remove DNS records no longer in Traefik
|
||||||
DRY_RUN: "false" # set "true" to preview changes without applying them
|
DRY_RUN: "false" # set "true" to preview changes without applying them
|
||||||
|
|
||||||
# ── Example app (shows how Traefik labels work) ──────────────────────────────
|
networks:
|
||||||
# Uncomment to test end-to-end:
|
traefik-network:
|
||||||
#
|
external: true
|
||||||
# whoami:
|
|
||||||
# image: traefik/whoami
|
|
||||||
# labels:
|
|
||||||
# - "traefik.enable=true"
|
|
||||||
# - "traefik.http.routers.whoami.rule=Host(`whoami.example.com`)"
|
|
||||||
# - "traefik.http.routers.whoami.entrypoints=web"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user