Fix deploy without Go: Docker installer, optional .env
This commit is contained in:
+17
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user