File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ Dockerfile
Original file line number Diff line number Diff line change
1
+ FROM debian:bookworm-slim AS base
2
+
3
+ RUN apt update -qy
4
+ RUN apt install -qy librocksdb-dev
5
+
6
+ FROM base as build
7
+
8
+ RUN apt install -qy git cargo clang cmake
9
+
10
+ WORKDIR /build
11
+ COPY . .
12
+
13
+ RUN cargo build --release --bin electrs
14
+
15
+ FROM base as deploy
16
+
17
+ COPY --from=build /build/target/release/electrs /bin/electrs
18
+
19
+ EXPOSE 50001
20
+
21
+ ENTRYPOINT ["/bin/electrs" ]
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+ services :
3
+
4
+ mempool-electrs :
5
+ build :
6
+ context : .
7
+ dockerfile : Dockerfile
8
+ restart : on-failure
9
+
10
+ ports :
11
+ - 50001:50001
12
+
13
+ entrypoint :
14
+ /bin/electrs
15
+ command : |
16
+ --address-search
17
+ --cookie mempool:mempool
18
+ --db-dir /electrs
19
+ --cors '*'
20
+ volumes :
21
+ - ' electrs_data:/electrs'
22
+
23
+ volumes :
24
+ electrs_data:
You can’t perform that action at this time.
0 commit comments