2.6 KiB
2.6 KiB
Quickstart
Note
The following page is based on version
1.1.1
of BrickTracker.
Prerequisites
- Docker and Docker Compose installed
- A Rebrickable API key from https://rebrickable.com/users/profile/
- curl or wget (for downloading configuration files)
Note on Environment Configuration
BrickTracker can be configured using either:
- A
.env
file (recommended and shown in this guide) - Environment variables in compose.yaml
This guide uses the .env
file approach for better maintainability. The environment variables in the compose.yaml file are kept minimal and only reference the essential paths.
Directory Setup
- Create the project directory and structure:
mkdir -p bricktracker/{data,static/{instructions,minifigures,parts,sets}}
cd bricktracker
- Download the sample configuration files:
# Get the environment file template
curl -o env.sample https://raw.githubusercontent.com/FrederikBaerentsen/BrickTracker/main/env.sample
# Or with wget:
# wget -O env.sample https://raw.githubusercontent.com/FrederikBaerentsen/BrickTracker/main/env.sample
Docker Compose Configuration
Create compose.yaml
with this content:
services:
bricktracker:
container_name: BrickTracker
restart: unless-stopped
image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:1.1.1
ports:
- "3333:3333"
volumes:
- ./data:/data
- ./static/instructions:/app/static/instructions
- ./static/minifigures:/app/static/minifigures
- ./static/parts:/app/static/parts
- ./static/sets:/app/static/sets
env_file: ".env"
Starting BrickTracker
- Start the application:
docker compose up -d
- Access BrickTracker at
http://localhost:3333
Please refer to Environment Variables Reference for a list of available variables.
- Read more in First steps
Troubleshooting
-
If the application won't start:
- Check if port 3333 is available
- Check logs with
docker compose logs -f
- Ensure
.env
file is properly formatted
-
If images aren't appearing:
- Verify write permissions on static directories
- Ensure network connectivity to Rebrickable
-
If you can't add sets:
- Verify your Rebrickable API key
- Check the application logs for API errors
-
Environment configuration issues:
- Make sure
.env
file exists and is readable - Check for any syntax errors in
.env
file - Verify no conflicting environment variables are set in the shell
- Make sure
For more troubleshooting, take a look at Common Errors
Please refer to Setup for more information.