From a98f4faaebb64e83e17d39f0dbc7b2fcb0842d3d Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Mon, 15 Dec 2025 22:26:45 -0500 Subject: [PATCH] fix(docker): updated compose files for v1.3 changes --- compose.local.yaml | 20 +++++++------------- compose.yaml | 26 +++++++------------------- 2 files changed, 14 insertions(+), 32 deletions(-) diff --git a/compose.local.yaml b/compose.local.yaml index bf7a8d6..dc4bfb4 100644 --- a/compose.local.yaml +++ b/compose.local.yaml @@ -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 diff --git a/compose.yaml b/compose.yaml index 535c64f..b3bfdbf 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: