fix: add victoriametrics container in prod compose
This commit is contained in:
parent
71a5f57105
commit
ee1d742a71
1 changed files with 18 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ services:
|
||||||
- net.ipv6.conf.all.forwarding=1
|
- net.ipv6.conf.all.forwarding=1
|
||||||
- net.ipv6.conf.all.disable_ipv6=0
|
- net.ipv6.conf.all.disable_ipv6=0
|
||||||
environment:
|
environment:
|
||||||
WG_DATABASE_URL: postgresql+asyncpg://wiregui:wiregui@postgres/wiregui
|
WG_DATABASE_URL: postgresql+asyncpg://wiregui:${POSTGRES_PASSWORD:-wiregui}@postgres/wiregui
|
||||||
WG_REDIS_URL: redis://valkey:6379/0
|
WG_REDIS_URL: redis://valkey:6379/0
|
||||||
WG_SECRET_KEY: ${WG_SECRET_KEY:-change-me-in-production}
|
WG_SECRET_KEY: ${WG_SECRET_KEY:-change-me-in-production}
|
||||||
WG_WG_ENABLED: "true"
|
WG_WG_ENABLED: "true"
|
||||||
|
|
@ -28,6 +28,10 @@ services:
|
||||||
WG_ADMIN_EMAIL: ${WG_ADMIN_EMAIL:-admin@localhost}
|
WG_ADMIN_EMAIL: ${WG_ADMIN_EMAIL:-admin@localhost}
|
||||||
WG_ADMIN_PASSWORD: ${WG_ADMIN_PASSWORD:-}
|
WG_ADMIN_PASSWORD: ${WG_ADMIN_PASSWORD:-}
|
||||||
WG_LOG_TO_FILE: "true"
|
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:
|
volumes:
|
||||||
- wiregui_logs:/app/logs
|
- wiregui_logs:/app/logs
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -35,15 +39,15 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
valkey:
|
valkey:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
victoriametrics:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: wiregui
|
POSTGRES_USER: wiregui
|
||||||
POSTGRES_PASSWORD: wiregui
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-wiregui}
|
||||||
POSTGRES_DB: wiregui
|
POSTGRES_DB: wiregui
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
@ -59,7 +63,17 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- valkey_data:/data
|
- 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:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
valkey_data:
|
valkey_data:
|
||||||
wiregui_logs:
|
wiregui_logs:
|
||||||
|
vm_data:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue