Ad Guard Home Sync - Portainer Docker Stack

Ad Guard Home Sync is used to synchronize configurations from a source (origin) Ad Guard Home server to other replica servers.

Quick functioning setup example

---
version: "2.1"
services:
  adguardhome-sync:
    image: ghcr.io/bakito/adguardhome-sync
    container_name: adguardhome-sync
    command: run
    environment:
      LOG_LEVEL: 'info'
      ORIGIN_URL: 'https://<source-adguard-url>'
      ORIGIN_USERNAME: '<source-username>'
      ORIGIN_PASSWORD: '<source-password>'
      REPLICA_URL: 'https://<replica-adguard-url>'
      REPLICA_USERNAME: '<replica-username>'
      REPLICA_PASSWORD: '<replica-password>'
      #REPLICA1_URL: 'http://192.168.1.4'
      #REPLICA1_USERNAME: 'username'
      #REPLICA1_PASSWORD: 'password'
      #REPLICA1_APIPATH: '/some/path/control'
      # REPLICA1_AUTOSETUP: true # if true, AdGuardHome is automatically initialized.
      # REPLICA1_INTERFACENAME: 'ens18' # use custom dhcp interface name
      # REPLICA1_DHCPSERVERENABLED: true/false (optional) enables/disables the dhcp server on the replica
      CRON: '*/10 * * * *' # run every 10 minutes
      RUNONSTART: true

      # Configure the sync API server, disabled if api port is 0
      API_PORT: 8080

      # Configure sync features; by default all features are enabled.
      # FEATURES_GENERALSETTINGS: true
      # FEATURES_QUERYLOGCONFIG: true
      # FEATURES_STATSCONFIG: true
      # FEATURES_CLIENTSETTINGS: true
      # FEATURES_SERVICES: true
      # FEATURES_FILTERS: true
      # FEATURES_DHCP_SERVERCONFIG: true
      # FEATURES_DHCP_STATICLEASES: true
      # FEATURES_DNS_SERVERCONFIG: true
      # FEATURES_DNS_ACCESSLISTS: true
      # FEATURES_DNS_REWRITES: true
    ports:
      - 8484:8080 # <external-port>:<container-port>
    restart: unless-stopped