-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (24 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
28 lines (24 loc) · 1.07 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
services:
node:
image: pasarguard/node:latest
# for situations, you don't have access to docker hub use 👇
# image: ghcr.io/pasarguard/node:latest
restart: always
network_mode: host
cap_add:
- NET_ADMIN
# WireGuard in this image uses the Linux kernel interface.
# The host must have WireGuard kernel support available (for example: modprobe wireguard).
environment:
SERVICE_PORT: 62050
SERVICE_PROTOCOL: "grpc"
# Linux: enable runtime IPv4 forwarding and install scoped nftables NAT/forwarding rules.
# NAT egress is auto-detected (ip route / /proc/net/route); set PG_NODE_WG_NAT_OUTPUT_INTERFACE to override (e.g. eth0, ens192).
PG_NODE_WG_HOST_ROUTING: "1"
SSL_CERT_FILE: "/var/lib/pg-node/certs/ssl_cert.pem"
SSL_KEY_FILE: "/var/lib/pg-node/certs/ssl_key.pem"
# api key must be a valid uuid (you can use any version you want)
# API_KEY: xxxxxxxx-yyyy-zzzz-mmmm-aaaaaaaaaaa
GENERATED_CONFIG_PATH: "/var/lib/pg-node/generated"
volumes:
- /var/lib/pg-node:/var/lib/pg-node