diff --git a/docker-compose/adguardhome-sync/adguardhome-sync.yaml b/docker-compose/adguardhome-sync/adguardhome-sync.yaml new file mode 100644 index 0000000..e319c9d --- /dev/null +++ b/docker-compose/adguardhome-sync/adguardhome-sync.yaml @@ -0,0 +1,44 @@ +# cron expression to run in daemon mode. (default; "" = runs only once) +cron: "*/10 * * * *" + +# runs the synchronisation on startup +runOnStart: true + +origin: + # url of the origin instance + url: https://192.168.1.2:3000 + # apiPath: define an api path if other than "/control" + # insecureSkipVerify: true # disable tls check + username: username + password: password + +# replica instance (optional, if only one) +replica: + # url of the replica instance + url: http://192.168.1.3:1080 + username: username + password: password + +# Configure the sync API server, disabled if api port is 0 +api: + # Port, default 8080 + port: 8080 + # if username and password are defined, basic auth is applied to the sync API + username: username + password: password + +# Configure sync features; by default all features are enabled. +features: + generalSettings: true + queryLogConfig: true + statsConfig: true + clientSettings: true + services: true + filters: true + dhcp: + serverConfig: true + staticLeases: true + dns: + serverConfig: true + accessLists: true + rewrites: true \ No newline at end of file diff --git a/docker-compose/adguardhome-sync/adguardsync.yml b/docker-compose/adguardhome-sync/adguardsync.yml index 49bdd8d..91343aa 100644 --- a/docker-compose/adguardhome-sync/adguardsync.yml +++ b/docker-compose/adguardhome-sync/adguardsync.yml @@ -1,23 +1,17 @@ version: "2.1" services: adguardhome-sync: - image: quay.io/bakito/adguardhome-sync + image: ghcr.io/bakito/adguardhome-sync container_name: adguardhome-sync - command: run - environment: - - ORIGIN_URL=http://192.168.1.2:1080 # adres kontenera z AdguardHome numer 1 - - ORIGIN_USERNAME=admin # login do AdguardHome numer 1 - - ORIGIN_PASSWORD=MojeHasloDoAdguardHome1 #haslo na dostepowe w AdguardHome numer 1 - - REPLICA_URL=http://192.168.1.3:3000 # adres kontenera z AdguardHome numer 2 - - REPLICA_USERNAME=admin # login do AdguardHome numer 2 - - REPLICA_PASSWORD=MojeHasloDoAdguardHome2 #haslo na dostepowe w AdguardHome numer 2 - - CRON=*/10 * * * * # uruchamianie synchronizacji co 10 minut - - RUNONSTART=true + command: run --config /config/adguardhome-sync.yaml + volumes: + - /docker/adguardhome-sync/adguardhome-sync.yaml:/config/adguardhome-sync.yaml ports: - 8100:8080 restart: unless-stopped - ############ - ## Wiecej informacji: - ## https://github.com/bakito/adguardhome-sync - ############ + +############ +## Wiecej informacji: +## https://github.com/bakito/adguardhome-sync +############ \ No newline at end of file diff --git a/docker-compose/adguardhome-sync/adguardsync2.yml b/docker-compose/adguardhome-sync/adguardsync2.yml new file mode 100644 index 0000000..49bdd8d --- /dev/null +++ b/docker-compose/adguardhome-sync/adguardsync2.yml @@ -0,0 +1,23 @@ +version: "2.1" +services: + adguardhome-sync: + image: quay.io/bakito/adguardhome-sync + container_name: adguardhome-sync + command: run + environment: + - ORIGIN_URL=http://192.168.1.2:1080 # adres kontenera z AdguardHome numer 1 + - ORIGIN_USERNAME=admin # login do AdguardHome numer 1 + - ORIGIN_PASSWORD=MojeHasloDoAdguardHome1 #haslo na dostepowe w AdguardHome numer 1 + - REPLICA_URL=http://192.168.1.3:3000 # adres kontenera z AdguardHome numer 2 + - REPLICA_USERNAME=admin # login do AdguardHome numer 2 + - REPLICA_PASSWORD=MojeHasloDoAdguardHome2 #haslo na dostepowe w AdguardHome numer 2 + - CRON=*/10 * * * * # uruchamianie synchronizacji co 10 minut + - RUNONSTART=true + ports: + - 8100:8080 + restart: unless-stopped + + ############ + ## Wiecej informacji: + ## https://github.com/bakito/adguardhome-sync + ############