Split the job tracker out of web_server into its own app
The applications tracker, leads inbox, email pipeline and capture userscript move here from web_server's backend, Python service and Vue app, as one Go binary that serves its own Vue SPA under /jobs/. - The Go services, resolvers and tests move over almost unchanged. - The three Claude calls are ported from Python to Go (internal/claude), with the same prompts, per-model request shaping and error messages. - There is no login: internal/auth asks the site backend's /auth/validate-admin with the visitor's cookies, and relays refreshed cookies back. - A Settings page replaces the admin-panel capture token card and adds the Microsoft sign-in link and a manual email sync. - The userscript is 2.0.0, at /jobs/, and migrates a saved API base. - Dockerfile, a standalone compose with Postgres, Makefile, and a Gitea CI workflow that tests and publishes the image. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# Standalone development: the tracker and its own Postgres, with seed data and
|
||||
# no login (AUTH_MODE=dev). http://localhost:8080/jobs/
|
||||
#
|
||||
# docker compose up --build
|
||||
#
|
||||
# This is NOT how it runs in production. There it is one service in the main
|
||||
# site's docker-compose.yml, behind that site's nginx, sharing its Postgres
|
||||
# container and borrowing its login; see README.md.
|
||||
#
|
||||
# Claude features need CLAUDE_API_KEY in your shell or a .env file here.
|
||||
services:
|
||||
jobs:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
DATABASE_URL: postgres://jobs:jobs@db:5432/jobs?sslmode=disable
|
||||
DEV_MODE: "true"
|
||||
AUTH_MODE: dev
|
||||
SEED_DB: "true"
|
||||
CLAUDE_API_KEY: ${CLAUDE_API_KEY:-}
|
||||
CLAUDE_MODEL: ${CLAUDE_MODEL:-}
|
||||
ADZUNA_APP_ID: ${ADZUNA_APP_ID:-}
|
||||
ADZUNA_APP_KEY: ${ADZUNA_APP_KEY:-}
|
||||
REED_API_KEY: ${REED_API_KEY:-}
|
||||
GQL_PLAYGROUND: "true"
|
||||
GQL_INTROSPECTION: "true"
|
||||
volumes:
|
||||
- jobs-data:/data
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: jobs
|
||||
POSTGRES_PASSWORD: jobs
|
||||
POSTGRES_DB: jobs
|
||||
volumes:
|
||||
- jobs-db:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U jobs -d jobs -q"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
jobs-data:
|
||||
jobs-db:
|
||||
Reference in New Issue
Block a user