Files
vps-tracker/docker-compose.yml
T
DenozordecandCursor 2931d6ee0f
Docker / build (push) Failing after 18s
fix(db): bootstrap полной схемы на чистой установке и логи Docker
Пустой volume больше не отдаёт 500 на /api/data из-за отсутствующих таблиц. В compose добавлены json-file логи с ротацией и LOG_LEVEL для Fastify.

Co-authored-by: Cursor <[email protected]>
2026-07-19 04:27:42 +07:00

43 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# VPS Tracker: образ с GHCR + SQLite в ./data на хосте
services:
app:
image: ghcr.io/denozordec/vps-tracker:latest
pull_policy: always
ports:
- "3001:3001"
environment:
PORT: "3001"
RUNTIME: "fastify"
NODE_ENV: production
LOG_LEVEL: ${LOG_LEVEL:-info}
AUTH_REQUIRED: ${AUTH_REQUIRED:-false}
AUTH_JWT_SECRET: ${AUTH_JWT_SECRET:-dev-secret-change-me}
AUTH_ISSUER: ${AUTH_ISSUER:-https://auth.shnt.top}
AUTH_PORTAL_URL: ${AUTH_PORTAL_URL:-http://localhost:8080}
volumes:
- ./data:/app/data
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
tag: "{{.Name}}"
# Раскомментируйте для локальной сборки вместо pull образа:
# app-build:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "3001:3001"
# environment:
# PORT: "3001"
# RUNTIME: "express"
# volumes:
# - ./data:/app/data
# logging:
# driver: json-file
# options:
# max-size: "10m"
# max-file: "3"