-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from M4RC0Sx/develop
docs: fill readme
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# ClouDDNSflare | ||
Docker compose setup to run PiHole + Unbound DNS + WireGuard (UI) + DDNS (optional) + PiAlert (optional) behind a Traefik Proxy. | ||
Access your home network from the outside with your own domain without worrying about dynamic IP! | ||
|
||
## Usage | ||
You just need to start a Docker container: | ||
|
||
### Docker run | ||
```bash | ||
docker run \ | ||
--restart always \ | ||
-e PUBLIC_IP_PROVIDER=https://api.ipify.org \ | ||
-e REFRESH_MINUTES=5 \ | ||
-e CF_API_URL=https://api.cloudflare.com/client/v4 \ | ||
-e [email protected] \ | ||
-e CF_API_KEY=cf_global_api_key \ | ||
-e CF_ZONE=yourdomain.com \ | ||
-e CF_RECORD=subdomain.yourdomain.com \ | ||
m4rc0sx/clouddnsflare:latest | ||
``` | ||
|
||
### Docker compose | ||
```yml | ||
version: '3.8' | ||
|
||
services: | ||
clouddnsflare: | ||
image: m4rc0sx/clouddnsflare:latest | ||
restart: always | ||
environment: | ||
PUBLIC_IP_PROVIDER: https://api.ipify.org | ||
REFRESH_MINUTES: 5 | ||
CF_API_URL: https://api.cloudflare.com/client/v4 | ||
CF_API_EMAIL: [email protected] | ||
CF_API_KEY: cf_global_api_key | ||
CF_ZONE: yourdomain.com | ||
CF_RECORD: subdomain.yourdomain.com | ||
|
||
``` | ||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
## Env variables | ||
| Option | Description | Type | Default | | ||
|-------------------|--------------------------------------------------|-----------|---------------------| | ||
| `PUBLIC_IP_PROVIDER` | The URL of the public IP provider | String| `https://api.ipify.org`| | ||
| `REFRESH_MINUTES` | The interval in minutes to refresh the IP address. **Be careful with CF rate limits!** | Integer| `5` | | ||
| `CF_API_URL` | The URL of the Cloudflare API | String| `https://api.cloudflare.com/client/v4`| | ||
| `CF_API_EMAIL` | Your Cloudflare account email | String| `""` | | ||
| `CF_API_KEY` | Your Cloudflare API key | String| `""` | | ||
| `CF_ZONE` | Your Cloudflare Zone name | String| `""` | | ||
| `CF_RECORD` | The DNS record you want to update | String| `""`| | ||
|
||
|
||
|