mirror of
https://github.com/tiennm99/traefik-cloudflare-dns.git
synced 2026-10-11 03:13:52 +00:00
feat: add a deployable compose file with a socket proxy
This commit is contained in:
1 parent
c953c94dcf
commit
50a7ca7ab0
3 files changed
+44
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
CF_API_TOKEN=
|
||||||
|
CF_ZONE_ID=
|
||||||
|
DOMAIN=example.com
|
||||||
|
TARGET=192.0.2.10
|
||||||
|
RECORD_COMMENT=managed by traefik-cloudflare-dns
|
||||||
|
DELETE_AFTER=1h
|
||||||
|
# RECORD_TAGS=
|
||||||
|
# PROXIED=false
|
||||||
|
# TTL=1
|
||||||
|
# RESYNC_INTERVAL=1m
|
||||||
|
# DRY_RUN=false
|
||||||
|
# LOG_LEVEL=info
|
||||||
@@ -23,6 +23,8 @@ A typical setup is one wildcard record (`*.example.com`) for your main server, p
|
|||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
|
The repo's [`compose.yml`](compose.yml) is ready to deploy as is, for example as a Docker Compose app in Coolify on each server. Copy [`.env.example`](.env.example) to `.env` and fill in the four required values. The minimal form is:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
traefik-cloudflare-dns:
|
traefik-cloudflare-dns:
|
||||||
|
|||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
services:
|
||||||
|
traefik-cloudflare-dns:
|
||||||
|
image: ghcr.io/tiennm99/traefik-cloudflare-dns:edge
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- CF_API_TOKEN=${CF_API_TOKEN:?CF_API_TOKEN is required}
|
||||||
|
- CF_ZONE_ID=${CF_ZONE_ID:?CF_ZONE_ID is required}
|
||||||
|
- DOMAIN=${DOMAIN:?DOMAIN is required}
|
||||||
|
- TARGET=${TARGET:?TARGET is required}
|
||||||
|
- DOCKER_HOST=tcp://dockerproxy:2375
|
||||||
|
- RECORD_COMMENT=${RECORD_COMMENT:-managed by traefik-cloudflare-dns}
|
||||||
|
- DELETE_AFTER=${DELETE_AFTER:-1h}
|
||||||
|
# - RECORD_TAGS=${RECORD_TAGS:-}
|
||||||
|
# - PROXIED=${PROXIED:-false}
|
||||||
|
# - TTL=${TTL:-1}
|
||||||
|
# - RESYNC_INTERVAL=${RESYNC_INTERVAL:-1m}
|
||||||
|
# - DRY_RUN=${DRY_RUN:-false}
|
||||||
|
# - LOG_LEVEL=${LOG_LEVEL:-info}
|
||||||
|
depends_on:
|
||||||
|
- dockerproxy
|
||||||
|
|
||||||
|
dockerproxy:
|
||||||
|
image: tecnativa/docker-socket-proxy:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- CONTAINERS=1
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
Reference in new issue
Block a user