File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ COPY dbsync.py .
3535COPY dbsync_daemon.py .
3636COPY log_functions.py .
3737
38- # base DB sync config file (the rest is configured with env variables)
39- COPY config-dockerfile.yaml ./config.yaml
4038ENV PATH="${PATH}:/geodiff/build"
4139
4240ENTRYPOINT ["python3" , "dbsync_daemon.py" ]
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # How to connect to Mergin Maps server
12mergin:
23 url: https://app.merginmaps.com
34 username: john
45 password: mysecret
56
7+ # How to initialize the sync - one of the two options:
8+ # - "gpkg" - use existing GeoPackage from given Mergin Maps project (and create database schema during init)
9+ # - "db" - use existing database schema (and create GeoPackage in Mergin Maps project during init)
610init_from: gpkg
711
812connections:
913 - driver: postgres
10- conn_info:
11- modified: mergin_main
12- base: mergin_base
14+ # Parameters to PostgreSQL database
15+ conn_info: "host=localhost dbname=mydb user=myuser password=mypassword"
16+ # Database schema that will be synchronized with Mergin Maps project
17+ # (it must exist if doing init from database, it must not exist if doing init from geopackage)
18+ modified: myproject_data
19+ # Extra database schema that will contain internal data and should never be edited
20+ # (it must not exist before the sync starts - it will be created automatically)
21+ base: myproject_data_base
22+
23+ # Mergin Maps project to use (<workspace>/<project>)
1324 mergin_project: john/myproject
14- sync_file: sync.gpkg
15- skip_tables: []
25+ # Path to the GeoPackage within the Mergin Maps project above
26+ # (it must exist if doing init from geopackage, it must not exist if doing init from database)
27+ sync_file: data.gpkg
1628
1729daemon:
30+ # How often to synchronize (in seconds)
1831 sleep_time: 10
You can’t perform that action at this time.
0 commit comments