fix(docker): updated compose files for v1.3 changes

This commit is contained in:
2025-12-15 22:26:45 -05:00
parent 343f2f2fe9
commit a98f4faaeb
2 changed files with 14 additions and 32 deletions

View File

@@ -2,21 +2,15 @@ services:
bricktracker: bricktracker:
container_name: BrickTracker container_name: BrickTracker
restart: unless-stopped restart: unless-stopped
# image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:dev
build: . build: .
ports: ports:
- "3334:3333" - "3334:3333"
volumes: volumes:
- ./local:/local - ./local:/app/data # Changed from ./local to ./data for consistency
- ./local/instructions:/app/static/instructions/
- ./local/minifigures:/app/static/minifigures/
- ./local/parts:/app/static/parts/
- ./local/sets:/app/static/sets/
environment: environment:
BK_DEBUG: true - BK_DEBUG=true
BK_DATABASE_PATH: /local/app.db # For local development, place .env in data/ folder
BK_INSTRUCTIONS_FOLDER: instructions # The app automatically detects and uses data/.env (no env_file needed)
BK_MINIFIGURES_FOLDER: minifigures # Uncomment below only if you keep .env in root for backward compatibility
BK_PARTS_FOLDER: parts # env_file: .env
BK_RETIRED_SETS_PATH: /local/retired_sets.csv
BK_SETS_FOLDER: sets
BK_THEMES_PATH: /local/themes.csv

View File

@@ -2,26 +2,14 @@ services:
bricktracker: bricktracker:
container_name: BrickTracker container_name: BrickTracker
restart: unless-stopped restart: unless-stopped
image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:1.2.2 image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:latest
ports: ports:
- "3333:3333" - "3333:3333"
volumes: volumes:
- data:/data/ - ./data:/app/data/
- instructions:/app/static/instructions/ # Configuration can be done via .env file
- minifigures:/app/static/minifigures/ # For new installations, place .env in data/ folder for persistence
- parts:/app/static/parts/ # For backward compatibility, .env in root is also supported
- sets:/app/static/sets/ # The app automatically detects and uses data/.env (priority) or .env (fallback)
# Or define those in your .env file # env_file: ".env" # Optional: Only needed if keeping .env in root for backward compatibility
environment:
BK_DATABASE_PATH: /data/app.db
BK_MINIFIGURES_FOLDER: minifigures
BK_RETIRED_SETS_PATH: /data/retired_sets.csv
BK_THEMES_PATH: /data/themes.csv
env_file: ".env"
volumes:
data:
instructions:
minifigures:
parts:
sets: