Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ certs/
*.pfx
*.p12

# Credentials and secrets (NEVER commit!)
credentials/
secrets/
*.env.multitenant

# Python
__pycache__/
*.py[cod]
Expand All @@ -30,3 +35,8 @@ postgres_data/
# Marketing posts (personal)
docs/MARKETING_POST*
docs/MEDIUM*

# Claude Code
.claude/
.mcp.json
AGENTS.md
26 changes: 26 additions & 0 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Worker Dockerfile for multi-tenant trading workers
# Each tenant gets their own container running this image

FROM python:3.11-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy only what the worker needs
COPY trading_worker.py .
COPY trading_queue.py .
COPY trading.py .
COPY models.py .

# Create secrets directory
RUN mkdir -p /run/secrets

# Run as non-root user
RUN useradd -m worker && chown -R worker:worker /app /run/secrets
USER worker

# Default command
CMD ["python", "trading_worker.py"]
1 change: 1 addition & 0 deletions admin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Admin API for tenant management
Loading