Fix deploy without Go: Docker installer, optional .env

This commit is contained in:
vpn-panel
2026-05-21 18:58:35 +03:00
parent 3c2f5226d1
commit 74d5d34679
4 changed files with 75 additions and 22 deletions
+17 -2
View File
@@ -17,16 +17,31 @@ services:
timeout: 5s
retries: 10
install:
build: .
profiles: ["tools"]
stdin_open: true
tty: true
working_dir: /work
volumes:
- .:/work
entrypoint: ["/app/install"]
depends_on:
postgres:
condition: service_healthy
panel:
build: .
container_name: vpn-panel-app
restart: unless-stopped
env_file:
- .env
ports:
- "${APP_PORT:-8080}:8080"
environment:
APP_PORT: "8080"
APP_DOMAIN: ${APP_DOMAIN:-localhost}
DATABASE_URL: ${DATABASE_URL:-postgres://vpnpanel:changeme@postgres:5432/vpnpanel?sslmode=disable}
SECRET_KEY: ${SECRET_KEY:-change-me-run-install-first}
INSTALLED: ${INSTALLED:-false}
depends_on:
postgres:
condition: service_healthy