Init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Telemt Panel — fleet control plane (published port, agents enroll remotely)
|
||||
# Docs: docs/install.md
|
||||
#
|
||||
# docker compose -f docker-compose.fleet.yml up -d
|
||||
|
||||
services:
|
||||
panel:
|
||||
image: git.shts.su/denozord/telemtPanel:${PANEL_IMAGE_TAG:-latest}
|
||||
container_name: telemt-panel
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${SERVER_PORT:-8080}:8080"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
PANEL_MODE: fleet
|
||||
DATABASE_URL: sqlite:/data/app.db
|
||||
STATIC_DIR: /app/static
|
||||
NODE_ENV: production
|
||||
SERVER_PORT: 8080
|
||||
JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET in .env}
|
||||
PANEL_ENCRYPTION_KEY: ${PANEL_ENCRYPTION_KEY:?set PANEL_ENCRYPTION_KEY in .env}
|
||||
PANEL_PUBLIC_URL: ${PANEL_PUBLIC_URL:?set PANEL_PUBLIC_URL in .env}
|
||||
BOOTSTRAP_USERNAME: ${BOOTSTRAP_USERNAME:-admin}
|
||||
BOOTSTRAP_PASSWORD: ${BOOTSTRAP_PASSWORD:-}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
volumes:
|
||||
- panel_data:/data
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"node",
|
||||
"-e",
|
||||
"fetch('http://127.0.0.1:8080/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
panel_data:
|
||||
name: telemt_panel_fleet_data
|
||||
Reference in New Issue
Block a user