-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
75 lines (71 loc) · 2.02 KB
/
Copy pathcompose.prod.yml
File metadata and controls
75 lines (71 loc) · 2.02 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
services:
wiregui:
image: ghcr.io/bartei/wiregui:latest
restart: unless-stopped
ports:
- "13000:13000"
- "51821:51821/udp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.all.disable_ipv6=0
environment:
WG_DATABASE_URL: postgresql+asyncpg://wiregui:${POSTGRES_PASSWORD:-wiregui}@postgres/wiregui
WG_REDIS_URL: redis://valkey:6379/0
WG_SECRET_KEY: ${WG_SECRET_KEY:-change-me-in-production}
WG_WG_ENABLED: "true"
WG_WG_ENDPOINT_HOST: ${WG_ENDPOINT_HOST:-vpn.example.com}
WG_WG_ENDPOINT_PORT: "51821"
WG_HOST: "0.0.0.0"
WG_PORT: "13000"
WG_EXTERNAL_URL: ${WG_EXTERNAL_URL:-http://localhost:13000}
WG_ADMIN_EMAIL: ${WG_ADMIN_EMAIL:-admin@localhost}
WG_ADMIN_PASSWORD: ${WG_ADMIN_PASSWORD:-}
WG_LOG_TO_FILE: "true"
WG_METRICS_ENABLED: "true"
WG_METRICS_POLL_INTERVAL: "5"
WG_VICTORIAMETRICS_URL: http://victoriametrics:8428
WG_IDP_CONFIG_FILE: ${WG_IDP_CONFIG_FILE:-}
volumes:
- ./logs:/app/logs
depends_on:
postgres:
condition: service_healthy
valkey:
condition: service_started
victoriametrics:
condition: service_started
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: wiregui
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-wiregui}
POSTGRES_DB: wiregui
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wiregui"]
interval: 5s
timeout: 5s
retries: 5
valkey:
image: valkey/valkey:8
restart: unless-stopped
volumes:
- valkey_data:/data
victoriametrics:
image: victoriametrics/victoria-metrics:v1.108.1
restart: unless-stopped
command:
- "-retentionPeriod=90d"
- "-httpListenAddr=:8428"
volumes:
- vm_data:/victoria-metrics-data
volumes:
postgres_data:
valkey_data:
vm_data: