Update comfigs for best practices
This commit is contained in:
@@ -1,34 +1,19 @@
|
||||
services:
|
||||
cloudflare-ddns:
|
||||
image: favonia/cloudflare-ddns:1
|
||||
# Prefer "1" or "1.x.y" in production.
|
||||
#
|
||||
# - "1" tracks the latest stable release whose major version is 1
|
||||
# - "1.x.y" pins one specific stable version
|
||||
# - "latest" moves to each new stable release and may pick up breaking
|
||||
# changes in a future major release, so it is not recommended in production
|
||||
# - "edge" tracks the latest unreleased development build
|
||||
network_mode: host
|
||||
# Optional. This bypasses network isolation and makes IPv6 easier.
|
||||
# See "Use IPv6 without sharing the host network".
|
||||
restart: unless-stopped
|
||||
# Restart the updater after reboot
|
||||
user: "1000:1000"
|
||||
# Run the updater with specific user and group IDs (in that order).
|
||||
# You can change the two numbers based on your need.
|
||||
read_only: true
|
||||
# Make the container filesystem read-only (optional but recommended)
|
||||
cap_drop: [all]
|
||||
# Drop all Linux capabilities (optional but recommended)
|
||||
#security_opt: [no-new-privileges:true]
|
||||
# Another protection to restrict superuser privileges (optional but recommended)
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- CLOUDFLARE_API_TOKEN=cfat_yPhy6H6v3Yr83YdNuJQeS4lgfxzd7X2U1OpMX4gp07cf50fe
|
||||
# Your Cloudflare API token
|
||||
- DOMAINS=wampler.us
|
||||
# Your domains (separated by commas)
|
||||
- PROXIED=true
|
||||
- IP6_PROVIDER=none
|
||||
# Use Cloudflare's proxy for these domains (optional)
|
||||
# Existing DNS records in Cloudflare keep their current proxy setting
|
||||
# Change them once manually if you want to switch them
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 64M
|
||||
cpus: '0.1'
|
||||
|
||||
Reference in New Issue
Block a user