- Updated `docker-compose.yml` to include `ADMIN_PASSWORD` environment variable for enhanced security. - Modified `index.js` to allow checkout requests to capture user names and improved email notifications with detailed information. - Added a new endpoint to fetch books currently on loan, providing better tracking of borrowed items. - Implemented a `list_books_on_loan` function in `libraryManager.py` to display books on loan in a formatted table. - Updated `models.js` to include an `approved` column in the `Checkout` model for tracking approval status. - Enhanced the user interface in `public/index.html` with a dark mode toggle and improved checkout request handling. - Updated styles in `public/styles.css` to support dark mode and improve overall aesthetics.
22 lines
444 B
YAML
22 lines
444 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
library-manager:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY}
|
|
- ADMIN_EMAIL=${ADMIN_EMAIL}
|
|
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
|
|
- DOMAIN=${DOMAIN}
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
volumes:
|
|
- .:/usr/src/app
|
|
- ./data:/usr/src/app/data
|
|
|
|
|