Skip to content

Commit 8425c4e

Browse files
committed
docs
1 parent c3ed9f3 commit 8425c4e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

book/src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [CLI](./framework/cli.md)
1515
- [Configuration](./framework/configuration.md)
1616
- [Test Configuration](./framework/test_configuration_overrides.md)
17-
- [Components Persistence](framework/components/state.md)
17+
- [Exposing Components](framework/components/state.md)
1818
- [Components Cleanup](framework/components/cleanup.md)
1919
- [Components Caching](framework/components/caching.md)
2020
- [External Environment](framework/components/external.md)

book/src/framework/components/state.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Components Persistence
1+
# Exposing Components (Data and ports)
22

33
We use static port ranges and volumes for all components to simplify Docker port management for developers.
44

@@ -27,6 +27,7 @@ Defaults are:
2727

2828
When you run `ctf d rm` database volume will be **removed**.
2929

30+
3031
<div class="warning">
3132

3233
One node set is enough for any kind of testing, if you need more nodes consider extending your existing node set:
@@ -35,3 +36,24 @@ One node set is enough for any kind of testing, if you need more nodes consider
3536
nodes = 10
3637
```
3738
</div>
39+
40+
## Custom ports
41+
42+
You can also define a custom set of ports for any node
43+
```toml
44+
[nodeset]
45+
nodes = 5
46+
override_mode = "each"
47+
48+
[[nodeset.node_specs]]
49+
50+
[nodeset.node_specs.db]
51+
image = "postgres:15.6"
52+
pull_image = true
53+
54+
[nodeset.node_specs.node]
55+
# here we defined 2 new ports to listen and mapped them to our host machine
56+
custom_ports = [14000, 14001]
57+
image = "public.ecr.aws/chainlink/chainlink:v2.16.0"
58+
pull_image = false
59+
```

0 commit comments

Comments
 (0)