Skip to content

Commit

Permalink
Remove testnet from docker command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWieczorek authored and kderme committed Sep 12, 2022
1 parent c6b4cac commit 5a5c3ed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ The PostgreSQL database is exposed on localhost port `5432`
`$ psql -h 0.0.0.0 -p 5432 -U postgres -d cexplorer` (then enter secret password)

### To connect to another network:

To connect to different network (preprod or preview) use `NETWORK` environment variable:


```
NETWORK=testnet docker-compose up && docker-compose logs -f
NETWORK=preprod docker-compose up && docker-compose logs -f
```

### Take control
Expand Down Expand Up @@ -57,15 +61,15 @@ docker load -i $(nix-build -A dockerImage --no-out-link)
## Restore from Snapshot

Restoring a database by running from gensis can take a number of hours, snapshots are provided for
both networks (Mainnet and Testnet) to restore the postgres database. See the
Mainnet to restore the postgres database. See the
[latest releases](https://github.com/input-output-hk/cardano-db-sync/releases) for a recent snapshot
matched with the `cardano-db-sync` version.

To download and restore a snapshot include `RESTORE_SNAPSHOT`:

```
RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/db-sync-snapshot-schema-10-block-6014140-x86_64.tgz \
NETWORK=testnet docker-compose up && docker-compose logs -f
docker-compose up && docker-compose logs -f
```

## Disable options
Expand Down Expand Up @@ -151,7 +155,7 @@ inputoutput/cardano-db-sync 066b747a8bfd3791b06ea46c2e793f83ed64967f f34b029
$ docker run inputoutput/cardano-db-sync:066b747a8bfd3791b06ea46c2e793f83ed64967f
```

## Running SMASH with docker-compose
## Running SMASH with docker-compose

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

0 comments on commit 5a5c3ed

Please sign in to comment.