-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (75 loc) · 2.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (75 loc) · 2.57 KB
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
version: "3.6"
services:
node:
# Do not set image field here, it will be set automatically by the sdk.
build:
context: .
args:
# see https://console.cloud.google.com/artifacts/docker/hoprassociation/europe-west3/docker-images/hoprd
UPSTREAM_VERSION: 5.0.0-rc.1-commit.7d90171
ports:
- "1422:1422/udp"
- "1422:1422/tcp"
- "3001:3001/tcp"
- "9091:9091/tcp"
- "9091:9091/udp"
- "3001:3001/tcp"
volumes:
- "node-data:/app/hoprd/data"
- "node-conf:/app/hoprd/conf"
security_opt:
- "seccomp:unconfined"
environment:
RUST_LOG: info
HOPRD_CONFIGURATION_FILE_PATH: /app/hoprd/conf/hoprd.cfg.yaml
HOPRD_IDENTITY: /app/hoprd/conf/hopr.id
HOPRD_DATA: /app/hoprd/data
HOPRD_HOST: "127.0.0.1:9091"
# Count flags, not booleans: "0" = off, "1" = on ("true"/"false" fail to parse).
HOPRD_ANNOUNCE: "1"
HOPRD_API: "1"
HOPRD_API_HOST: "0.0.0.0"
HOPRD_SAFE_ADDRESS: "0x0000000000000000000000000000000000000000"
HOPRD_MODULE_ADDRESS: "0x0000000000000000000000000000000000000000"
HOPRD_PASSWORD: ""
HOPRD_API_TOKEN: ""
# Set this to override the value in hoprd.cfg.yaml.tpl
HOPRD_BLOKLI_URL: ""
# Not exposed by `hoprd --help` in 4.0.3, but still read directly from the
# environment rather than as a registered CLI flag.
HOPRD_NAT: "true"
ADDITIONAL_CMDLINE_ARGS: ""
ADDITIONAL_ENVIRONMENT_VARS: ""
# DAppNode's dappmanager forces every service (this one included) onto dncore_network
# with a DNS alias of <serviceName>.<shortDnpName>.dappnode - see getShortUniqueDnp in
# DNP_DAPPMANAGER. hoprd's session_ip_forwarding needs a literal ip:port (hostnames are
# rejected by hoprd's own config parser), so entrypoint.sh resolves this at boot and
# renders it into hoprd.cfg.yaml.tpl - see entrypoint.sh and README.
GNOSISVPN_SERVER_HOST: "gnosisvpn-server.gnosisvpn-exit-node.public.dappnode"
restart: unless-stopped
depends_on:
- gnosisvpn-server
deploy:
resources:
limits:
memory: 2G
gnosisvpn-server:
# Do not set image field here, it will be set automatically by the sdk.
build:
context: ./gnosisvpn-server
cap_add:
- NET_ADMIN
volumes:
- "gnosisvpn-data:/data"
environment:
WIREGUARD_CIDR: "10.128.0.0/24"
WIREGUARD_MTU: "1420"
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
volumes:
node-data: {}
node-conf: {}
gnosisvpn-data: {}