2.0 KiB
2.0 KiB
Brick Tracker
https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker/src/branch/master/docs/quickstart.md
Setup
Create the bricktracker user
# SSH into your podman server as root
useradd bricktracker
loginctl enable-linger $(id -u bricktracker)
systemctl --user --machine=bricktracker@.host enable podman-restart
systemctl --user --machine=bricktracker@.host enable --now podman.socket
mkdir -p /home/bricktracker/.config/containers/systemd
Configure App
-
Copy the
.env.samplefrom https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker/src/branch/master/.env.sample to.env -
Set the following:
BK_AUTHENTICATION_PASSWORDBK_AUTHENTICATION_KEYBK_DATABASE_PATHBK_INSTRUCTIONS_FOLDERBK_MINIFIGURES_FOLDERBK_PARTS_FOLDERBK_REBRICKABLE_API_KEYBK_SETS_FOLDER
-
Create the docker compose yaml
services: bricktracker: container_name: BrickTracker restart: unless-stopped image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:1.2.2 ports: - "3333:3333" volumes: - ./data:/var/lib/bricktracker - ./static/instructions:/app/static/instructions - ./static/minifigures:/app/static/minifigures - ./static/parts:/app/static/parts - ./static/sets:/app/static/sets env_file: ".env" -
Start the service:
docker compose up -d
Caddy
-
Create the new DNS record for your website
-
Create the Caddyfile at
./Caddyfilehttps://connors-legos.reeseapps.com:443 { reverse_proxy 127.0.0.1:3333 } -
Create the Caddy compose.yaml
services: caddy: image: caddy:<version> restart: unless-stopped ports: - "80:80" - "443:443" - "443:443/udp" volumes: - ./Caddyfile:/etc/caddy/Caddyfile - caddy_data:/data - caddy_config:/config volumes: caddy_data: caddy_config: