-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
78 lines (61 loc) · 1.72 KB
/
Dockerfile
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
# Builder
FROM node:18 as builder
ADD . /app
WORKDIR /app
RUN npm i && npm run build
# Runner
FROM node:18
RUN mkdir -p /app
WORKDIR /app
COPY --from=builder /app/build /app/build
COPY package.json /app
COPY package-lock.json /app
RUN \
npm i --production && \
chown 1000:1000 -Rf /app
# Pool metadata used for discovery and logging
ENV POOL_DISPLAY_NAME=""
ENV POOL_NAME=""
ENV POOL_DESCRIPTION="A new pool"
ENV POOL_PICTURE=""
ENV POOL_WEBSITE=""
# Pool version (empty = auto)
ENV POOL_VERSION=""
# Config for pool's grpc service
ENV POOL_GRPC_BINDING_ADDRESS="0.0.0.0"
ENV POOL_GRPC_BINDING_PORT=5000
# Path to GRPC proto descriptor file (used only for grpcui)
ENV POOL_GRPC_PROTO_DESCRIPTOR_PATH = ""
# Only set GRPC_SERVER_CRT and GRPC_SERVER_KEY for public certificates
ENV POOL_GRPC_CA_CRT=""
ENV POOL_GRPC_SERVER_CRT=""
ENV POOL_GRPC_SERVER_KEY=""
# Pool secret key on Nostr (empty = autogenerate on startup)
ENV POOL_NOSTR_SECRET_KEY=""
# Relays to connect to (comma separated)
ENV NOSTR_RELAYS=""
# Events webhook endpoints (csv, used to send json payloads to an external service)
ENV POOL_EVENTS_WEBHOOK_ENDPOINTS=""
# Storage paths
ENV POOL_BLOB_STORAGE_PATH="/blobs"
# unused
ENV POOL_CACHE_PATH="/cache"
# Used to authenticate nodes and clients
ENV POOL_AUTH_SERVICE=""
# Logging configuration
ENV LOG_LEVEL="debug"
# End point for external logging (empty=disabled)
ENV OPENOBSERVE_ENDPOINT=""
ENV OPENOBSERVE_ORG="default"
ENV OPENOBSERVE_STREAM="default"
ENV OPENOBSERVE_BASICAUTH=""
ENV OPENOBSERVE_USERNAME=""
ENV OPENOBSERVE_PASSWORD=""
ENV OPENOBSERVE_BATCHSIZE="21"
ENV OPENOBSERVE_FLUSH_INTERVAL="5000"
ENV OPENOBSERVE_LOG_LEVEL="debug"
VOLUME /blobs
VOLUME /cache
EXPOSE 5000
USER 1000
CMD ["npm","run", "start"]