This commit is contained in:
Jarosław Karcewicz 2022-09-09 13:05:57 +02:00
parent fc2d82a496
commit ec71251946
3 changed files with 76 additions and 15 deletions

View File

@ -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

View File

@ -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
############

View File

@ -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
############