Skip to content

Commit 5a5c3ed

Browse files
ArturWieczorekkderme
authored andcommitted
Remove testnet from docker command examples
1 parent c6b4cac commit 5a5c3ed

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/docker.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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,15 +61,15 @@ docker load -i $(nix-build -A dockerImage --no-out-link)
5761
## Restore from Snapshot
5862

5963
Restoring 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
6266
matched with the `cardano-db-sync` version.
6367

6468
To download and restore a snapshot include `RESTORE_SNAPSHOT`:
6569

6670
```
6771
RESTORE_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
6973
```
7074

7175
## Disable options
@@ -151,7 +155,7 @@ inputoutput/cardano-db-sync 066b747a8bfd3791b06ea46c2e793f83ed64967f f34b029
151155
$ docker run inputoutput/cardano-db-sync:066b747a8bfd3791b06ea46c2e793f83ed64967f
152156
```
153157

154-
## Running SMASH with docker-compose
158+
## Running SMASH with docker-compose
155159

156160
Edit the docker-compose.yml to add a listening port for the postgres container
157161
e.g.

0 commit comments

Comments
 (0)