Initial commit: VPN panel on Go, PostgreSQL 17, Docker, Xray-core

This commit is contained in:
vpn-panel
2026-05-21 18:55:14 +03:00
commit 3c2f5226d1
27 changed files with 1778 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
services:
postgres:
image: postgres:17-alpine
container_name: vpn-panel-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-vpnpanel}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
POSTGRES_DB: ${POSTGRES_DB:-vpnpanel}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-vpnpanel} -d ${POSTGRES_DB:-vpnpanel}"]
interval: 5s
timeout: 5s
retries: 10
panel:
build: .
container_name: vpn-panel-app
restart: unless-stopped
env_file:
- .env
ports:
- "${APP_PORT:-8080}:8080"
environment:
APP_PORT: "8080"
depends_on:
postgres:
condition: service_healthy
command: ["/app/panel"]
volumes:
pgdata: