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
@@ -94,7 +95,11 @@ Modify the following information of the `docker-compose.yml` file to tweak the c
94
95
95
96
### Ports
96
97
97
-
The default port is 5987. If, for example, you would like to use port 8080, modify the value `5987:5987` to `8080:5987`. The latter is the port exposed by the container.
98
+
The default port `5987` is used for communication with the locally deployed satellites and other modules in the local environment (replica). This is the primary port for interaction with the application.
99
+
100
+
The container also exposes a small admin server for internal management on port `5999`.
101
+
102
+
If you want to use a different port, such as 8080, update for example the mapping from `5987:5987` to `8080:5987`, where the first value (8080) is the port you can call, and the second (5987) is the actual container port.
98
103
99
104
### Volumes
100
105
@@ -114,6 +119,7 @@ services:
114
119
image: junobuild/satellite:latest
115
120
ports:
116
121
- 5987:5987
122
+
- 5999:5999
117
123
volumes:
118
124
- hello_world:/juno/.juno # <-------- hello_world modified here
If, for example, we want to configure a "metadata" collection in the Datastore, a "content" collection in the Storage, and provide an additional controller, we could use the following configuration:
186
193
187
-
```json title="juno.dev.config.json"
188
-
{
189
-
"satellite": {
190
-
"collections": {
191
-
"db": [
194
+
```typescript title="juno.dev.config.ts"
195
+
import { defineDevConfig } from "@junobuild/config";
- /your/custom/path/your_config_file.json:/juno/juno.dev.config.json # <-------- Modify location and file name of the left hand part
@@ -274,3 +284,33 @@ await initSatellite({
274
284
container: true
275
285
});
276
286
```
287
+
288
+
---
289
+
290
+
## Tips and Tricks
291
+
292
+
The admin server running on port `5999` provides a variety of internal management. Below are some tips and example scripts to make use of this little server.
293
+
294
+
### Example: Get ICP
295
+
296
+
You might want to transfer some ICP from the ledger to a specified principal, which can be particularly useful when you're just getting started developing your app and no users currently own ICP. This can be achieved by querying:
0 commit comments