BrickTracker
Docker 应用程序 from grtgbln's Repository
概述
要求
Expects an app.db file to exist at the Database Path before container is started. See the README for more information: https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker#setup-using-pre-build-docker-image
Developer offers way too many configuration options to list all in this template. See all options here: https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker/src/branch/master/docs/env.md
运行时参数
- 网络用户界面
http://[IP]:[PORT:3333]/- 网络
bridge- 特权
- false
模板配置
Container Port: 3333
- 目标
- 3333
- 默认值
- 3333
- 价值
- 3333
API key for Rebrickable. Get one at https://rebrickable.com/api/
- 目标
- BK_REBRICKABLE_API_KEY
Domain name for the application. Replace with local IP address or domain name.
- 目标
- BK_DOMAIN_NAME
- 默认值
- http://IP_ADDRESS:3333
- 价值
- http://IP_ADDRESS:3333
Path to store part images
- 目标
- /app/static/parts
- 默认值
- /mnt/user/appdata/brick_tracker/parts
- 价值
- /mnt/user/appdata/brick_tracker/parts
Path to store instruction images
- 目标
- /app/static/instructions
- 默认值
- /mnt/user/appdata/brick_tracker/instructions
- 价值
- /mnt/user/appdata/brick_tracker/instructions
Path to store set images
- 目标
- /app/static/sets
- 默认值
- /mnt/user/appdata/brick_tracker/sets
- 价值
- /mnt/user/appdata/brick_tracker/sets
Path to store minifigure images
- 目标
- /app/static/minifigures
- 默认值
- /mnt/user/appdata/brick_tracker/minifigs
- 价值
- /mnt/user/appdata/brick_tracker/minifigs
Path to the SQLite database. Run `touch app.db` BEFORE running container for the first time.
- 目标
- data/app.db
- 默认值
- /mnt/user/appdata/brick_tracker/app.db
- 价值
- /mnt/user/appdata/brick_tracker/app.db
Password for the application. Useful if you want to share the page with other in read-only.
- 目标
- BK_AUTHENTICATION_PASSWORD
A unique key used to sign the secrets when using authentication. Remove if not using Password. Use Python command: python3 -c 'import secrets; print(secrets.token_hex())'
- 目标
- BK_AUTHENTICATION_KEY
Display Bricklink links wherever applicable
- 目标
- BK_BRICKLINK_LINKS
- 默认值
- false|true
Display Rebrickable links wherever applicable
- 目标
- BK_REBRICKABLE_LINKS
- 默认值
- false|true
Comma separated list of allowed file types for instructions
- 目标
- BK_INSTRUCTIONS_ALLOWED_EXTENSIONS
- 默认值
- .pdf,.docx,.png
- 价值
- .pdf,.docx,.png
Hide the 'Add' entry from the menu.
- 目标
- BK_HIDE_ADD_SET
- 默认值
- false|true
Hide the 'Bulk Add' entry from the add page.
- 目标
- BK_HIDE_ADD_BULK_SET
- 默认值
- false|true
Hide the 'Admin' entry from the menu.
- 目标
- BK_HIDE_ADMIN
- 默认值
- false|true
Hide the 'Instructions' entry from the menu.
- 目标
- BK_HIDE_ALL_INSTRUCTIONS
- 默认值
- false|true
Hide the 'Instructions' entry from the Set card.
- 目标
- BK_HIDE_SET_INSTRUCTIONS
- 默认值
- false|true
Hide the 'Minifigures' entry from the menu.
- 目标
- BK_HIDE_ALL_MINIFIGURES
- 默认值
- false|true
Hide the 'Parts' entry from the menu.
- 目标
- BK_HIDE_ALL_PARTS
- 默认值
- false|true
Hide the 'Sets' entry from the menu.
- 目标
- BK_HIDE_ALL_SETS
- 默认值
- false|true
Hide the 'Missing' entry from the menu.
- 目标
- BK_HIDE_MISSING_PARTS
- 默认值
- false|true
Hide the 'Problems' entry from the menu.
- 目标
- BK_HIDE_ALL_PROBLEMS_PARTS
- 默认值
- false|true
Hide the 'Storages' entry from the menu.
- 目标
- organizer
- 默认值
- false|true
Hide the 'Wishlist' entry from the menu.
- 目标
- BK_HIDE_WISHES
- 默认值
- false|true
Hide the 'Damaged' column from the parts table.
- 目标
- BK_HIDE_TABLE_DAMAGED_PARTS
- 默认值
- false|true
Hide the 'Missing' column from the parts table.
- 目标
- BK_HIDE_TABLE_MISSING_PARTS
- 默认值
- false|true
Skip saving or displaying spare parts
- 目标
- BK_SKIP_SPARE_PARTS
- 默认值
- false|true
Shuffle the lists on the front page.
- 目标
- BK_RANDOM
- 默认值
- false|true
Make the grid filters displayed by default, rather than collapsed.
- 目标
- BK_SHOW_GRID_FILTERS
- 默认值
- false|true
Make the grid sort displayed by default, rather than collapsed.
- 目标
- BK_SHOW_GRID_SORT
- 默认值
- false|true
Timezone of the application
- 目标
- BK_TIMEZONE
- 默认值
- UTC
- 价值
- UTC
Path to store app data
- 目标
- /app/data
- 默认值
- /mnt/user/appdata/brick_tracker/data
- 价值
- /mnt/user/appdata/brick_tracker/data
Enable debug mode
- 目标
- BK_DEBUG
- 默认值
- false|true
Pattern of the link to Bricklink for a part. Will be passed to Python .format(). Supports {part} and {color} parameters. BrickLink part numbers and color IDs are used when available.
- 目标
- BK_BRICKLINK_LINK_PART_PATTERN
- 默认值
- https://www.bricklink.com/v2/catalog/catalogitem.page?P={part}&C={color}
- 价值
- https://www.bricklink.com/v2/catalog/catalogitem.page?P={number}
Pattern of the link to Rebrickable for a part. Will be passed to Python .format()
- 目标
- BK_REBRICKABLE_LINK_PART_PATTERN
- 默认值
- https://rebrickable.com/parts/{number}/_/{color}
- 价值
- https://rebrickable.com/parts/{number}/_/{color}
Image to display when a part is missing
- 目标
- BK_REBRICKABLE_IMAGE_NIL
- 默认值
- https://rebrickable.com/static/img/nil.png
- 价值
- https://rebrickable.com/static/img/nil.png
Pattern of the link to Rebrickable for a minifigure. Will be passed to Python .format()
- 目标
- BK_REBRICKABLE_LINK_MINIFIGURE_PATTERN
- 默认值
- https://rebrickable.com/minifigs/{number}
- 价值
- https://rebrickable.com/minifigs/{number}
Image to display when a minifigure is missing
- 目标
- BK_REBRICKABLE_IMAGE_NIL_MINIFIGURE
- 默认值
- https://rebrickable.com/static/img/nil_mf.jpg
- 价值
- https://rebrickable.com/static/img/nil_mf.jpg
Pattern of the link to Rebrickable for a set. Will be passed to Python .format()
- 目标
- BK_REBRICKABLE_LINK_SET_PATTERN
- 默认值
- https://rebrickable.com/sets/{number}
- 价值
- https://rebrickable.com/sets/{number}
URL to the themes.csv.gz on Rebrickable
- 目标
- BK_THEMES_FILE_URL
- 默认值
- https://cdn.rebrickable.com/media/downloads/themes.csv.gz
- 价值
- https://cdn.rebrickable.com/media/downloads/themes.csv.gz
Use remote image rather than the locally stored ones. Also prevents downloading any image when adding sets.
- 目标
- BK_USE_REMOTE_IMAGES
- 默认值
- false|true
Format of the timestamp added to the database file when downloading it
- 目标
- BK_DATABASE_TIMESTAMP_FORMAT
- 默认值
- %Y-%m-%d-%H-%M-%S
- 价值
- %Y-%m-%d-%H-%M-%S
Format of the timestamp for files on disk (instructions, themes)
- 目标
- BK_FILE_DATETIME_FORMAT
- 默认值
- %d/%m/%Y, %H:%M:%S
- 价值
- %d/%m/%Y, %H:%M:%S
Format of the timestamp for purchase dates
- 目标
- BK_PURCHASE_DATE_FORMAT
- 默认值
- %d/%m/%Y
- 价值
- %d/%m/%Y
Currency to use for purchases
- 目标
- BK_PURCHASE_CURRENCY
- 默认值
- €
- 价值
- €
Default number of items per page displayed for big tables
- 目标
- BK_DEFAULT_TABLE_PER_PAGE
- 默认值
- 25|10|50|100|500|1000
- 价值
- 25
Host to bind to
- 目标
- BK_HOST
- 默认值
- 0.0.0.0
- 价值
- 0.0.0.0
Port to bind to
- 目标
- BK_PORT
- 默认值
- 3333
- 价值
- 3333
Disable threading on the task executed by the socket. Useful for debugging.
- 目标
- BK_NO_THREADED_SOCKET
- 默认值
- false|true
Namespace of the Socket.IO socket
- 目标
- BK_SOCKET_NAMESPACE
- 默认值
- bricksocket
- 价值
- bricksocket
Path of the Socket.IO socket
- 目标
- BK_SOCKET_PATH
- 默认值
- /bricksocket/
- 价值
- /bricksocket/
Each accordion can be opened independently
- 目标
- BK_INDEPENDENT_ACCORDIONS
- 默认值
- false|true
The amount of items to retrieve per Rebrickable API call.
- 目标
- BK_REBRICKABLE_PAGE_SIZE
- 默认值
- 100
- 价值
- 100
User agent to use when making requests to Rebrickable. This is used to prevent being rate limited.
- 目标
- BK_REBRICKABLE_USER_AGENT
- 默认值
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
- 价值
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
Change the default order of minifigures.
- 目标
- BK_MINIFIGURES_DEFAULT_ORDER
- 默认值
- rebrickable_minifigures name ASC
- 价值
- rebrickable_minifigures name ASC
Change the default order of parts.
- 目标
- BK_PARTS_DEFAULT_ORDER
- 默认值
- rebrickable_parts.name ASC, rebrickable_parts.color_name ASC, bricktracker_parts.spare ASC
- 价值
- rebrickable_parts.name ASC, rebrickable_parts.color_name ASC, bricktracker_parts.spare ASC
Change the default order of sets.
- 目标
- BK_SETS_DEFAULT_ORDER
- 默认值
- rebrickable_sets.year ASC
- 价值
- rebrickable_sets.year ASC
Change the default order of wishlist.
- 目标
- BK_WISHES_DEFAULT_ORDER
- 默认值
- bricktracker_wishes.set DESC
- 价值
- bricktracker_wishes.set DESC
Change the default order of purchase locations.
- 目标
- BK_PURCHASE_LOCATION_DEFAULT_ORDER
- 默认值
- bricktracker_metadata_purchase_locations.name ASC
- 价值
- bricktracker_metadata_purchase_locations.name ASC
Change the default order of storages
- 目标
- BK_STORAGE_DEFAULT_ORDER
- 默认值
- bricktracker_metadata_storages.name ASC
- 价值
- bricktracker_metadata_storages.name ASC
URL to the unofficial retired sets list on Google Sheets
- 目标
- BK_RETIRED_SETS_FILE_URL
- 默认值
- https://docs.google.com/spreadsheets/d/1rlYfEXtNKxUOZt2Mfv0H17DvK7bj6Pe0CuYwq6ay8WA/gviz/tq?tqx=out:csv&sheet=Sorted%20by%20Retirement%20Date
- 价值
- https://docs.google.com/spreadsheets/d/1rlYfEXtNKxUOZt2Mfv0H17DvK7bj6Pe0CuYwq6ay8WA/gviz/tq?tqx=out:csv&sheet=Sorted%20by%20Retirement%20Date
Path to the SQLite database inside the container. Not recommended to change.
- 目标
- BK_DATABASE_PATH
- 默认值
- data/app.db
- 价值
- data/app.db
Name of the minifigures folder inside the container. Not recommended to change.
- 目标
- BK_MINIFIGURES_FOLDER
- 默认值
- minifigures
- 价值
- minifigures
Name of the instructions folder inside the container. Not recommended to change.
- 目标
- BK_INSTRUCTIONS_FOLDER
- 默认值
- instructions
- 价值
- instructions
Name of the parts folder inside the container. Not recommended to change.
- 目标
- BK_PARTS_FOLDER
- 默认值
- parts
- 价值
- parts
Name of the sets folder inside the container. Not recommended to change.
- 目标
- BK_SETS_FOLDER
- 默认值
- sets
- 价值
- sets
Path to the retired sets CSV file inside the container. Not recommended to change.
- 目标
- BK_RETIRED_SETS_PATH
- 默认值
- data/retired_sets.csv
- 价值
- data/retired_sets.csv
Path to the themes CSV file inside the container. Not recommended to change.
- 目标
- BK_THEMES_PATH
- 默认值
- data/themes.csv
- 价值
- data/themes.csv
详细信息
gitea.baerentsen.space/frederikbaerentsen/bricktracker:latest在Unraid 上运行 BrickTracker 。
BrickTracker 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。