Use inline env vars in docker-compose, verify Docker build works
- docker-compose.yml: replace env_file with explicit environment block so all variables are passable directly (JWT_SECRET required, rest have defaults) - Confirmed Docker image builds successfully Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,19 @@ services:
|
|||||||
nanodrop:
|
nanodrop:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "${PORT:-3000}:3000"
|
||||||
env_file:
|
environment:
|
||||||
- .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}"
|
||||||
volumes:
|
volumes:
|
||||||
- nanodrop-data:/app/data
|
- nanodrop-data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user