All checks were successful
Deploy to Homelab / deploy (push) Successful in 8s
34 lines
857 B
YAML
34 lines
857 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}:${PORT:-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:
|