From 5f2230017099c8f8bdbc2fde59e35ad5e55c0c68 Mon Sep 17 00:00:00 2001
From: FrederikBaerentsen <frederik+gitea@baerentsen.net>
Date: Fri, 27 Dec 2024 22:51:29 +0100
Subject: [PATCH] Updated readme for prebuild image. Fixes #20

---
 README.md | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index d4556ce..0d66091 100644
--- a/README.md
+++ b/README.md
@@ -56,15 +56,7 @@ mkdir -p static/{sets,instructions,parts,minifigs}
 touch app.db
 ```
 
-2. Create a `.env` file with your configuration:
-```
-REBRICKABLE_API_KEY=your_api_key_here
-DOMAIN_NAME=https://your.domain.com
-```
-
-If using locally, set `DOMAIN_NAME` to `http://localhost:3333`.
-
-3. Create Docker Compose file:
+2. Create Docker Compose file:
 ```bash
 services:
   bricktracker:
@@ -80,9 +72,14 @@ services:
       - ./static/sets:/app/static/sets
       - ./static/minifigs:/app/static/minifigs
       - ./app.db:/app/app.db
+    environment:
+      - REBRICKABLE_API_KEY=your_api_key_here
+      - DOMAIN_NAME=https://your.domain.com
 ```
 
-4. Deploy with Docker Compose:
+If using locally, set `DOMAIN_NAME` to `http://localhost:3333`.
+
+3. Deploy with Docker Compose:
 ```bash
 docker compose up -d
 ```