File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,30 @@ To connect to different network (preprod or preview) use `NETWORK` environment v
66
66
NETWORK=preprod docker-compose up -d && docker-compose logs -f
67
67
```
68
68
69
+ ### Overriding Configuration
70
+
71
+ Overriding the configuration file can be done by passing the ` DB_SYNC_CONFIG ` environment
72
+ variable. First, add a bind mount to the ` cardano-db-sync ` service:
73
+
74
+ ``` yaml
75
+ cardano-db-sync :
76
+ image : cardano-db-sync
77
+ # <-- Snip -->
78
+ volumes :
79
+ - db-sync-data:/var/lib/cexplorer
80
+ - node-ipc:/node-ipc
81
+ # Add the bind mount here
82
+ - ./config/network/mainnet:/data
83
+ # <-- Snip -->
84
+ ```
85
+
86
+ Set the configuration file with ` DB_SYNC_CONFIG ` :
87
+
88
+ ``` sh
89
+ export DB_SYNC_CONFIG=/data/db-sync-config.json
90
+ docker-compose up -d && docker-compose logs -f
91
+ ```
92
+
69
93
### Take control
70
94
71
95
Excluding the ` NETWORK ` ENV will simply just call the ` cardano-db-sync ` executable
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ services:
55
55
cardano-db-sync :
56
56
image : ghcr.io/intersectmbo/cardano-db-sync:13.3.0.0
57
57
environment :
58
+ - DB_SYNC_CONFIG=${DB_SYNC_CONFIG:-}
58
59
- DISABLE_LEDGER=${DISABLE_LEDGER}
59
60
- NETWORK=${NETWORK:-mainnet}
60
61
- POSTGRES_HOST=postgres
You can’t perform that action at this time.
0 commit comments