-
Notifications
You must be signed in to change notification settings - Fork 1
/
swarm-node.yaml
87 lines (87 loc) · 1.65 KB
/
swarm-node.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.3"
services:
farmer:
image: ghcr.io/subspace/farmer:gemini-2a-2022-sep-10
command:
- --base-path
- /var/subspace
- farm
- --node-rpc-url
- ws://node:9944
- --ws-server-listen-addr
- 0.0.0.0:9955
- --listen-on
- /ip4/0.0.0.0/tcp/40333
- --reward-address
- 5Co1PCj2ivUiLiuJfd9USaiG7mSDLAzXAQ1KWxLDPqqZFhom
- --plot-size
- 10G
user: root
ports:
- 30113:40333
volumes:
- farmer-data:/var/subspace
networks:
- net
logging:
driver: json-file
deploy:
placement:
constraints:
- node.labels.name == node2
resources:
reservations:
memory: 32M
node:
image: ghcr.io/subspace/node:gemini-2a-2022-sep-10
command:
- --chain
- gemini-2a
- --base-path
- /var/subspace
- --execution
- wasm
- --state-pruning
- "1024"
- --keep-blocks
- "1024"
- --port
- "30333"
- --rpc-cors
- all
- --ws-port
- "9944"
- --rpc-methods
- unsafe
- --unsafe-ws-external
- --validator
- --name
- swarm-node-mina
user: root
healthcheck:
interval: 30s
timeout: 5s
retries: 5
ports:
- 30114:30333
volumes:
- node-data:/var/subspace
networks:
- net
logging:
driver: json-file
deploy:
placement:
constraints:
- node.labels.name == node2
resources:
reservations:
memory: 32M
networks:
bridgess:
external: true
net:
driver: overlay
volumes:
farmer-data:
node-data: