This repository was archived by the owner on Dec 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +169
-67
lines changed Expand file tree Collapse file tree 4 files changed +169
-67
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,72 @@ version: '3'
2
2
volumes :
3
3
blockdata_dir :
4
4
external : true
5
+ cargo_files :
6
+ external : true
5
7
6
8
services :
7
9
rustcoin :
8
10
build : ./rustcoin
11
+ environment :
12
+ - " CARGO_HOME=/opt/cargo"
9
13
volumes :
10
14
- ./rustcoin:/opt/rustcoin
11
15
- blockdata_dir:/root/.rustcoin/
12
- ports :
13
- - " 8333:8333/udp"
16
+ - cargo_files:/opt/cargo
17
+ # ports:
18
+ # - "8333:8333/udp"
19
+ # networks:
20
+ # vpcbr:
21
+ # ipv4_address: 10.5.0.3
22
+ # rustcoin2:
23
+ # build: ./rustcoin
24
+ # environment:
25
+ # - "CARGO_HOME=/opt/cargo"
26
+ # - "PORT=8334"
27
+ # volumes:
28
+ # - ./rustcoin:/opt/rustcoin
29
+ # - cargo_files:/opt/cargo
30
+ # ports:
31
+ # - "8334:8334/udp"
32
+ # networks:
33
+ # vpcbr:
34
+ # ipv4_address: 10.5.0.4
35
+ # depends_on:
36
+ # - "rustcoin"
37
+ # rustcoin3:
38
+ # build: ./rustcoin
39
+ # environment:
40
+ # - "CARGO_HOME=/opt/cargo"
41
+ # - "PORT=8335"
42
+ # volumes:
43
+ # - ./rustcoin:/opt/rustcoin
44
+ # - cargo_files:/opt/cargo
45
+ # ports:
46
+ # - "8335:8335/udp"
47
+ # networks:
48
+ # vpcbr:
49
+ # ipv4_address: 10.5.0.5
50
+ # depends_on:
51
+ # - "rustcoin"
52
+ # rustcoin4:
53
+ # build: ./rustcoin
54
+ # environment:
55
+ # - "CARGO_HOME=/opt/cargo"
56
+ # - "PORT=8336"
57
+ # volumes:
58
+ # - ./rustcoin:/opt/rustcoin
59
+ # - cargo_files:/opt/cargo
60
+ # ports:
61
+ # - "8336:8336/udp"
62
+ # networks:
63
+ # vpcbr:
64
+ # ipv4_address: 10.5.0.6
65
+ # depends_on:
66
+ # - "rustcoin"
67
+
68
+ # networks:
69
+ # vpcbr:
70
+ # driver: bridge
71
+ # ipam:
72
+ # config:
73
+ # - subnet: 10.5.0.0/16
Original file line number Diff line number Diff line change 1
1
FROM rust:1.23
2
2
3
3
RUN mkdir -p /opt/rustcoin
4
+ RUN mkdir -p /opt/cargo
4
5
WORKDIR /opt/rustcoin
5
6
COPY . /opt/rustcoin
6
7
7
- CMD cargo run
8
+ # CMD cargo run
9
+ CMD ./startup.sh
You can’t perform that action at this time.
0 commit comments