Files
zeekay abf99d05fc papers: reorganize into per-paper dirs, add Antje Worring as co-author
Restructured from flat .tex/.pdf files into per-paper subdirectories.
Added Antje Worring as co-author on all papers.
Synced PDFs to pdfs/ for download site.
2026-04-18 21:50:07 -07:00

78 lines
1.4 KiB
TeX

\section{Deployment Guide}
\subsection{Docker Compose (Development)}
\begin{lstlisting}[language=yaml]
# compose.yaml
services:
lux-id:
image: ghcr.io/luxfi/id:latest
ports:
- "8000:8000"
environment:
- MYSQL_HOST=db
- MYSQL_PORT=3306
- MYSQL_DATABASE=lux_id
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- db
- redis
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=lux_id
volumes:
- mysql_data:/var/lib/mysql
redis:
image: redis:7.0
volumes:
- redis_data:/data
volumes:
mysql_data:
redis_data:
\end{lstlisting}
\subsection{Kubernetes (Production)}
\begin{lstlisting}[language=yaml]
# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: lux-id
spec:
replicas: 3
selector:
matchLabels:
app: lux-id
template:
metadata:
labels:
app: lux-id
spec:
containers:
- name: lux-id
image: ghcr.io/luxfi/id:v2025.10
ports:
- containerPort: 8000
env:
- name: MYSQL_HOST
value: "mysql-service"
- name: REDIS_HOST
value: "redis-service"
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "1000m"
\end{lstlisting}