- docker-compose: add register-user service (profiles: [tools]) with YAML anchor to avoid env duplication - src/index.ts: show localhost instead of 0.0.0.0 in startup message - file-view: render <img> inline for image/* MIME types - file-list: add Copy link button per row (requires baseUrl param) - layout: add hideLogo option; file view page hides the logo - style.css: remove uppercase from .logo (Nanodrop not NANODROP), add button.copy-link styles, add .file-view img styles, widen last td Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
848 B
YAML
34 lines
848 B
YAML
x-env: &env
|
|
PORT: "${PORT:-3000}"
|
|
HOST: "${HOST:-0.0.0.0}"
|
|
JWT_SECRET: "${JWT_SECRET}"
|
|
JWT_EXPIRY: "${JWT_EXPIRY:-7d}"
|
|
DB_PATH: "${DB_PATH:-./data/nanodrop.db}"
|
|
UPLOAD_DIR: "${UPLOAD_DIR:-./data/uploads}"
|
|
LOG_FILE: "${LOG_FILE:-./data/nanodrop.log}"
|
|
MAX_FILE_SIZE: "${MAX_FILE_SIZE:-104857600}"
|
|
BASE_URL: "${BASE_URL:-http://localhost:3000}"
|
|
COOKIE_SECURE: "${COOKIE_SECURE:-false}"
|
|
TRUST_PROXY: "${TRUST_PROXY:-false}"
|
|
|
|
services:
|
|
nanodrop:
|
|
build: .
|
|
ports:
|
|
- "${PORT:-3000}:3000"
|
|
environment: { <<: *env }
|
|
volumes:
|
|
- nanodrop-data:/app/data
|
|
restart: unless-stopped
|
|
|
|
register-user:
|
|
build: .
|
|
profiles: [tools]
|
|
entrypoint: ["node", "--import", "tsx", "src/cli/register-user.ts"]
|
|
environment: { <<: *env }
|
|
volumes:
|
|
- nanodrop-data:/app/data
|
|
|
|
volumes:
|
|
nanodrop-data:
|