Skip to content
Merged
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
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.git
.github
.claude
.codex
.agents
.aws
.playwright-mcp
.impeccable
**/node_modules
**/dist
.env
.env.*
*.sqlite
*.sqlite-*
data/raw
data/private
evaluation/private
docs/official
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Single-image deploy: builds web + API, serves both on :8787. State lives in /app/data (mount a volume).
FROM node:22-slim
RUN corepack enable
WORKDIR /app
COPY . .
RUN pnpm install --frozen-lockfile && pnpm build
ENV HOST=0.0.0.0 PORT=8787 NODE_ENV=production
EXPOSE 8787
# seed.mjs never overwrites an existing database or recording, so restarts keep reviewer edits.
CMD ["sh", "-c", "node scripts/seed.mjs && pnpm --filter @cqa/api start"]
8 changes: 8 additions & 0 deletions deploy/Caddyfile.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Append to the host Caddyfile. Generate the hash with: caddy hash-password
cqa.unsoundmint.com {
encode zstd gzip
basic_auth {
cqa <bcrypt-hash>
}
reverse_proxy 127.0.0.1:8787
}
10 changes: 10 additions & 0 deletions deploy/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Server deploy. Put secrets in deploy/.env (git-ignored); a reverse proxy terminates TLS and forwards to 127.0.0.1:8787.
services:
cqa:
build: ..
restart: unless-stopped
env_file: .env
ports: ["127.0.0.1:8787:8787"]
volumes: ["cqa-data:/app/data"]
volumes:
cqa-data:
Loading