forked from herraristotle/BookLore
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
24 lines (24 loc) · 805 Bytes
/
compose.yml
File metadata and controls
24 lines (24 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
booklite:
build:
context: .
dockerfile: Dockerfile
container_name: booklite
environment:
- 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:
- "${PORT:-6060}:${PORT:-6060}"
volumes:
- ${APP_DATA_BIND:-./app-data}:${APP_DATA_DIR:-/app/data}
- ${BOOKS_BIND:-./books}:${BOOKS_DIR:-/books}
restart: unless-stopped