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

View File

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