You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-89Lines changed: 14 additions & 89 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,10 +54,7 @@ Boot the [docker compose stack] using a convention for container and volume scop
54
54
optionally hitting the remote cache to speed up the build. The containers are detached, so you can terminate the log
55
55
console session freely. See [Docker Compose docs] to tailor for your use-case
56
56
57
-
##### Node snapshots
58
-
If you want to speed up the node syncing processes you can use a snapshot. The snapshot is a compressed file that contains the database of a node at a certain block.
59
-
You can download snapshots using Mithril, which are available for mainnet, preprod, and preview networks.
60
-
A detailed explanation can be found [here](https://mithril.network/doc/manual/getting-started/bootstrap-cardano-node)
57
+
##### DB Sync snapshots
61
58
<detailsopen>
62
59
<summary><i>mainnet</i></summary>
63
60
Get the most recent weekly snapshot link from https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html#13.6/ , and set it as `RESTORE_SNAPSHOT` below, or omit if you wish to sync from genesis.
@@ -69,64 +66,20 @@ Example - RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-syn
69
66
> We will provide a fix as soon as possible.
70
67
71
68
```console
72
-
DOCKER_BUILDKIT=1 \
73
-
COMPOSE_DOCKER_CLI_BUILD=1 \
74
-
RESTORE_SNAPSHOT=use latest snapshot file from above link (.tgz file) \
75
-
docker compose up -d --build &&\
76
-
docker compose logs -f
77
-
```
78
-
</details>
79
-
80
-
<details>
81
-
<summary><i>preprod</i></summary>
82
-
83
-
```console
84
-
DOCKER_BUILDKIT=1 \
85
-
COMPOSE_DOCKER_CLI_BUILD=1 \
86
-
NETWORK=preprod \
87
-
API_PORT=3101 \
88
-
HASURA_PORT=8091 \
89
-
OGMIOS_PORT=1338 \
90
-
POSTGRES_PORT=5433 \
91
-
docker compose -p preprod up -d --build &&\
92
-
docker compose -p preprod logs -f
69
+
docker compose --env-file .env.docker-compose up -d --build
93
70
```
94
71
95
72
</details>
96
73
97
74
<details>
98
-
<summary><i>preview</i></summary>
75
+
<summary><i>preprod</i></summary>
99
76
100
77
```console
101
-
DOCKER_BUILDKIT=1 \
102
-
COMPOSE_DOCKER_CLI_BUILD=1 \
103
-
NETWORK=preview \
104
-
API_PORT=3102 \
105
-
HASURA_PORT=8092 \
106
-
OGMIOS_PORT=1339 \
107
-
POSTGRES_PORT=5434 \
108
-
docker compose -p preview up -d --build &&\
109
-
docker compose -p preview logs -f
78
+
docker compose --env-file .env.docker-compose-preprod up -d --build
110
79
```
111
80
112
81
</details>
113
82
114
-
<details>
115
-
<summary><i>sanchonet</i></summary>
116
-
117
-
```console
118
-
DOCKER_BUILDKIT=1 \
119
-
COMPOSE_DOCKER_CLI_BUILD=1 \
120
-
NETWORK=sanchonet \
121
-
API_PORT=3102 \
122
-
HASURA_PORT=8092 \
123
-
OGMIOS_PORT=1339 \
124
-
POSTGRES_PORT=5434 \
125
-
docker compose -p preview up -d --build &&\
126
-
docker compose -p preview logs -f
127
-
```
128
-
</details>
129
-
130
83
#### B) Pull and Run via Docker Compose
131
84
Pull images from Docker Hub and run using a convention for container and volume scoping based on the network. The
132
85
containers are detached, so you can terminate the log console session freely. See [Docker Compose docs] to tailor for
@@ -136,38 +89,16 @@ your use-case.
136
89
<summary><i>mainnet</i></summary>
137
90
138
91
```console
139
-
export NETWORK=mainnet &&\
140
-
docker compose up -d &&\
141
-
docker compose logs -f
142
-
```
143
-
</details>
144
-
145
-
<details>
146
-
<summary><i>preprod</i></summary>
147
-
148
-
```console
149
-
export NETWORK=preprod &&\
150
-
API_PORT=3101 \
151
-
HASURA_PORT=8091 \
152
-
OGMIOS_PORT=1338 \
153
-
POSTGRES_PORT=5433 \
154
-
docker compose -p ${NETWORK} up -d &&\
155
-
docker compose -p ${NETWORK} logs -f
92
+
docker compose --env-file .env.docker-compose up -d
156
93
```
157
94
158
95
</details>
159
96
160
97
<details>
161
-
<summary><i>preview</i></summary>
98
+
<summary><i>preprod</i></summary>
162
99
163
100
```console
164
-
export NETWORK=preview &&\
165
-
API_PORT=3102 \
166
-
HASURA_PORT=8092 \
167
-
OGMIOS_PORT=1339 \
168
-
POSTGRES_PORT=5434 \
169
-
docker compose -p ${NETWORK} up -d &&\
170
-
docker compose -p ${NETWORK} logs -f
101
+
docker compose --env-file .env.docker-compose-preprod up -d
171
102
```
172
103
173
104
</details>
@@ -179,36 +110,30 @@ The following commands will not remove volumes, however should you wish to do so
179
110
<summary><i>mainnet</i></summary>
180
111
181
112
```console
182
-
docker compose down
113
+
docker compose --env-file .env.docker-compose down
183
114
```
184
115
</details>
185
116
186
117
<details>
187
118
<summary><i>preprod</i></summary>
188
119
189
120
```console
190
-
docker compose -p preprod down
121
+
docker compose --env-file .env.docker-compose-preprod down
191
122
```
192
123
193
124
</details>
194
125
195
-
<details>
196
-
<summary><i>preview</i></summary>
197
-
198
-
```console
199
-
docker compose -p preview down
200
-
```
201
-
202
-
</details>
126
+
### Disable Token Metadata Registry
127
+
The local Token Metadata Registry synchronization process can be disabled by removing the `COMPOSE_PROFILES` variable from the `.env.docker-compose` file.
203
128
204
129
### Use global Token Metadata Registry
205
-
The public Token metadata registry has a limit of daily requests, this can lead to long sync times, when resyncing from scratch.
130
+
The public Token Metadata Registry has a limit of daily requests, this can lead to long sync times, when resyncing from scratch.
206
131
If it's still needed to run with the global environment it's possible by removing the `token-metadata-registry` from `docker-compose.yml`.
207
-
And start it with for Mainnet:
132
+
And change the variable in `.env.docker-compose` for Mainnet:
208
133
```
209
134
METADATA_SERVER_URI="https://tokens.cardano.org" docker compose up -d
210
135
```
211
-
For other networks:
136
+
For Preprod `.env.docker-compose-preprod` (other networks):
0 commit comments