Run the job tracker as its own container at /jobs/
The tracker (applications, leads, email pipeline, capture userscript) now lives in the adamf/job-tracker repo and runs here from its published image. - docker-compose.yml: a `jobs` service with an explicit environment list (its own database role; none of the site's other secrets), ./jobs-data mounted at /data, and nginx waiting for it. The dev override seeds it. - nginx: /jobs/ proxied to it with the prefix kept, and 301s from /cv/jobs, /cv/leads and the old userscript URL. - env_registry.json and .env.example: the email and job-lead variables now belong to the jobs service; CLAUDE_* to python and jobs; new POSTGRES_JOBS_* and JOBS_IMAGE_TAG. The compose environment test now checks the jobs service's list as well as python's. - backend: no longer starts the email and job-lead schedulers or serves the capture and email routes, since the tracker reads the same settings and would otherwise process everything twice. The old job code stays until the tracker has run for a while. - vue: the CV page's Jobs button goes to /jobs/; the old routes are gone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -75,6 +75,16 @@ services:
|
||||
command: ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PYTHON_PORT:-8000} --root-path /py --reload"]
|
||||
volumes:
|
||||
- ./python/app:/app/app
|
||||
# The tracker's image ships no hot reload; for that, run its own repo's
|
||||
# `npm run dev`. Seeded like the backend, with the GraphQL playground at
|
||||
# /jobs/api/graphql. Login still goes through the backend's seeded admin.
|
||||
jobs:
|
||||
environment:
|
||||
- DEV_MODE=true
|
||||
- SEED_DB=true
|
||||
- GQL_PLAYGROUND=true
|
||||
- GQL_INTROSPECTION=true
|
||||
- MSGRAPH_REDIRECT_URI=https://localhost/jobs/api/email/callback
|
||||
certbot:
|
||||
# Profiles are opt-in: a service with a profile is only started when
|
||||
# that profile is explicitly requested. Nothing ever requests
|
||||
|
||||
Reference in New Issue
Block a user