Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ APP_DATA_DIR=/app/data
BOOKS_DIR=/books
BASE_URL=http://localhost:6060
JWT_SECRET=change-me-booklite
APP_DATA_BIND=./app-data
BOOKS_BIND=./books
BOOKLITE_FRONTEND_MODE=auto
ACCESS_TOKEN_TTL_SECONDS=900
REFRESH_TOKEN_TTL_SECONDS=7776000
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ See `.env.example`:
- `PORT` (default `6060`)
- `APP_DATA_DIR` (default `/app/data`)
- `BOOKS_DIR` (default `/books`)
- `APP_DATA_BIND` (default `./app-data`)
- `BOOKS_BIND` (default `./books`)
- `JWT_SECRET`
- `BASE_URL`
- `ACCESS_TOKEN_TTL_SECONDS` (default `900`, 15 minutes)
Expand Down
16 changes: 8 additions & 8 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ services:
dockerfile: Dockerfile
container_name: booklite
environment:
- PORT=6060
- APP_DATA_DIR=/app/data
- BOOKS_DIR=/books
- BASE_URL=http://localhost:6060
- JWT_SECRET=change-me-booklite
- PORT=${PORT:-6060}
- APP_DATA_DIR=${APP_DATA_DIR:-/app/data}
- BOOKS_DIR=${BOOKS_DIR:-/books}
- BASE_URL=${BASE_URL:-http://localhost:6060}
- JWT_SECRET=${JWT_SECRET:-change-me-booklite}
# Optional bootstrap owner (first run only)
# - BOOTSTRAP_OWNER_EMAIL=owner@example.com
# - BOOTSTRAP_OWNER_USERNAME=owner
# - BOOTSTRAP_OWNER_PASSWORD=change-me
# Optional Google fallback key
# - GOOGLE_BOOKS_API_KEY=
ports:
- "6060:6060"
- "${PORT:-6060}:${PORT:-6060}"
volumes:
- ./app-data:/app/data
- ./books:/books
- ${APP_DATA_BIND:-./app-data}:${APP_DATA_DIR:-/app/data}
- ${BOOKS_BIND:-./books}:${BOOKS_DIR:-/books}
restart: unless-stopped
Loading