This commit is contained in:
team3
2026-06-03 22:22:33 +02:00
parent 3ce313932d
commit c73d07be52
4 changed files with 9 additions and 2 deletions

3
.env.example Normal file
View File

@@ -0,0 +1,3 @@
# Lokal einmal 'claude setup-token' ausführen und Token hier eintragen.
# Datei nach .env kopieren (wird nicht committet).
CLAUDE_CODE_OAUTH_TOKEN=

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ frontend/dist/
__pycache__/ __pycache__/
*.pyc *.pyc
.claude-data/ .claude-data/
.env

View File

@@ -4,9 +4,10 @@ COMPOSE = docker compose
auth: auth:
@mkdir -p .claude-data storage projects @mkdir -p .claude-data storage projects
@cp -aT /root/.claude .claude-data
@chown -R 1000:1000 .claude-data storage projects @chown -R 1000:1000 .claude-data storage projects
@echo "Claude-Auth nach .claude-data synct, storage/projects chowned auf uid 1000." @grep -q "^CLAUDE_CODE_OAUTH_TOKEN=.\+" .env 2>/dev/null \
|| echo "WARNUNG: CLAUDE_CODE_OAUTH_TOKEN fehlt in .env. Lokal 'claude setup-token' ausführen und Token eintragen."
@echo "Verzeichnisse angelegt und auf uid 1000 chowned."
install: install:
sudo apt install -y poppler-utils libpango-1.0-0 libcairo2 libgdk-pixbuf-2.0-0 libffi-dev sudo apt install -y poppler-utils libpango-1.0-0 libcairo2 libgdk-pixbuf-2.0-0 libffi-dev

View File

@@ -4,6 +4,8 @@ services:
context: . context: .
container_name: guides container_name: guides
restart: unless-stopped restart: unless-stopped
environment:
- CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}
networks: networks:
- web - web
volumes: volumes: