-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.57 KB
/
docker-compose.yml
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
version: "3.9"
services:
sotreus:
build: .
container_name: Sotreus-VPN
environment:
LOAD_CONFIG_FILE: "${LOAD_CONFIG_FILE}"
RUNTYPE: "${RUNTYPE}"
SERVER: "${SERVER}"
WG_HTTP_PORT: "${WG_HTTP_PORT}"
WG_GRPC_PORT: "${WG_GRPC_PORT}"
WG_CONF_DIR: "${WG_CONF_DIR}"
WG_KEYS_DIR: "${WG_KEYS_DIR}"
WG_CLIENTS_DIR: "${WG_CLIENTS_DIR}"
WG_INTERFACE_NAME: "${WG_INTERFACE_NAME}"
WG_ENDPOINT_HOST: "${WG_ENDPOINT_HOST}"
WG_ENDPOINT_PORT: "${WG_ENDPOINT_PORT}"
WG_IPV4_SUBNET: "${WG_IPV4_SUBNET}"
WG_IPV6_SUBNET: "${WG_IPV6_SUBNET}"
WG_DNS: "${WG_DNS}"
WG_ALLOWED_IP_1: "${WG_ALLOWED_IP_1}"
WG_ALLOWED_IP_2: "${WG_ALLOWED_IP_2}"
WG_PRE_UP: "${WG_PRE_UP}"
WG_POST_UP: "${WG_POST_UP}"
WG_PRE_DOWN: "${WG_PRE_DOWN}"
WG_POST_DOWN: "${WG_POST_DOWN}"
SMTP_HOST: "${SMTP_HOST}"
SMTP_PORT: "${SMTP_PORT}"
SMTP_USERNAME: "${SMTP_USERNAME}"
SMTP_PASSWORD: "${SMTP_PASSWORD}"
SMTP_FROM: "${SMTP_FROM}"
PASETO_EXPIRATION_IN_HOURS: "${PASETO_EXPIRATION_IN_HOURS}"
SIGNED_BY: "${SIGNED_BY}"
FOOTER: "${FOOTER}"
AUTH_EULA: "${AUTH_EULA}"
MASTERNODE_WALLET: "${MASTERNODE_WALLET}"
ports:
- '${WG_HTTP_PORT}:${WG_HTTP_PORT}/tcp'
- '${WG_GRPC_PORT}:${WG_GRPC_PORT}/tcp'
- '${WG_ENDPOINT_PORT}:${WG_ENDPOINT_PORT}/udp'
volumes:
- /etc/wireguard:/etc/wireguard
cap_add:
- "NET_ADMIN"
- "SYS_MODULE"
sysctls:
- "net.ipv4.conf.all.src_valid_mark=1"
- "net.ipv6.conf.all.disable_ipv6=0"