@@ -26,8 +26,12 @@ The PostgreSQL database is exposed on localhost port `5432`
2626` $ psql -h 0.0.0.0 -p 5432 -U postgres -d cexplorer ` (then enter secret password)
2727
2828### To connect to another network:
29+
30+ To connect to different network (preprod or preview) use ` NETWORK ` environment variable:
31+
32+
2933```
30- NETWORK=testnet docker-compose up && docker-compose logs -f
34+ NETWORK=preprod docker-compose up && docker-compose logs -f
3135```
3236
3337### Take control
@@ -57,16 +61,28 @@ docker load -i $(nix-build -A dockerImage --no-out-link)
5761## Restore from Snapshot
5862
5963Restoring a database by running from gensis can take a number of hours, snapshots are provided for
60- both networks ( Mainnet and Testnet) to restore the postgres database. See the
64+ Mainnet to restore the postgres database. See the
6165[ latest releases] ( https://github.com/input-output-hk/cardano-db-sync/releases ) for a recent snapshot
6266matched with the ` cardano-db-sync ` version.
6367
6468To download and restore a snapshot include ` RESTORE_SNAPSHOT ` :
6569
6670```
6771RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/db-sync-snapshot-schema-10-block-6014140-x86_64.tgz \
68- NETWORK=testnet docker-compose up && docker-compose logs -f
72+ docker-compose up && docker-compose logs -f
73+ ```
6974
75+ ## Disable options
76+
77+ Consult the configuration [ docs] ( docs/configuration.md ) for what these options mean, assuming you have read that
78+ they can be accessed via env variables passed to docker-compose. Leave out any that do not make sense, eg if
79+ you just want to disable the ledger use ` DISABLE_LEDGER=--disable-ledger docker-compose up ` .
80+
81+ ``` shell
82+ DISABLE_LEDGER=--disable-ledger \
83+ DISABLE_CACHE=--disable-cache \
84+ DISABLE_EPOCH=--disable-epoch \
85+ docker-compose up
7086```
7187
7288## Running Tests with Docker Postgres
@@ -139,7 +155,7 @@ inputoutput/cardano-db-sync 066b747a8bfd3791b06ea46c2e793f83ed64967f f34b029
139155$ docker run inputoutput/cardano-db-sync:066b747a8bfd3791b06ea46c2e793f83ed64967f
140156```
141157
142- ## Running SMASH with docker-compose
158+ ## Running SMASH with docker-compose
143159
144160Edit the docker-compose.yml to add a listening port for the postgres container
145161e.g.
0 commit comments