Skip to content
This repository was archived by the owner on Dec 27, 2021. It is now read-only.

Commit d060de3

Browse files
committed
Write blocks to file, networking fixes
1 parent 30b7dc7 commit d060de3

File tree

4 files changed

+169
-67
lines changed

4 files changed

+169
-67
lines changed

docker-compose.yml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,72 @@ version: '3'
22
volumes:
33
blockdata_dir:
44
external: true
5+
cargo_files:
6+
external: true
57

68
services:
79
rustcoin:
810
build: ./rustcoin
11+
environment:
12+
- "CARGO_HOME=/opt/cargo"
913
volumes:
1014
- ./rustcoin:/opt/rustcoin
1115
- 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

rustcoin/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM rust:1.23
22

33
RUN mkdir -p /opt/rustcoin
4+
RUN mkdir -p /opt/cargo
45
WORKDIR /opt/rustcoin
56
COPY . /opt/rustcoin
67

7-
CMD cargo run
8+
# CMD cargo run
9+
CMD ./startup.sh

0 commit comments

Comments
 (0)