Files
lincodex/deploy/README.en.md
T

3.2 KiB

Deployment

Русский | English

Configuration for running the application with Docker Compose and Nginx.

  • docker/docker-compose.yml starts the core stack with PostgreSQL, Redis, SeaweedFS, and Kafka.
  • docker/docker-compose.ml.yml and docker/docker-compose.monitoring.yml run ML and monitoring as separate projects.
  • nginx/ configures frontend serving and API proxying.
  • docker/docker-compose.e2e.yml is an overlay used only by the browser suite: it removes the frontend host port and adds the Playwright runner.
  • docker/docker-compose.release.yml, docker/docker-compose.demo.release.yml, and docker/docker-compose.ml.release.yml are overlays that name the release images lincodex.invalid/<service>:<tag> (the demo seed image included) and never pull them from a registry.
  • docker/docker-compose.demo.yml and demo/ belong to the isolated demo stand with synthetic data: make -C deploy demo-seed DEMO_MODE=isolated starts and seeds it, demo-reset rebuilds it only when it holds no ordinary account, and demo-down stops it; see the isolated demo stand.
  • scripts/ contains the isolated stack smoke check, the browser E2E runner, and release_manifest.py, which builds, describes, and checks release images.
  • edge/ holds the public edge proxy: nginx and tunnel templates, certbot renewal hook, systemd drop-ins, and the scripts that render and check them. make -C deploy edge-config renders the nginx configuration and runs nginx -t in a container; see the edge proxy runbook.
  • make -C deploy check-perimeter checks the published ports, denied paths, limits, and the trusted peer of Nginx from the files; make -C deploy perimeter-test checks the same over HTTP on throwaway Nginx containers; see Public perimeter and client address.

Dockerfiles live in service directories and .env.example at the repository root. From the root, make -C deploy config checks Compose and make -C deploy up starts the core stack after .env is prepared. Start monitoring separately with make -C deploy monitoring-up. make -C deploy test-e2e runs the Playwright suite against a throwaway stack under a unique project name and removes it afterwards; make -C deploy test-e2e-registration enables a local Resend-compatible inbox only for registration browser tests. See TESTING.md for details.

make -C deploy release-build, release-smoke, release-e2e, and release-manifest build the release images with pinned base image digests, check them, and publish an immutable manifest to deploy/release/<release-id>/, which Git ignores; a new RELEASE_ID gives the next stage its own manifest. make -C deploy release-manifest-check scans the manifest for secrets and machine data, release-manifest-verify compares running containers with it, release-up restores the core stack and demo-seed DEMO_MODE=isolated RELEASE_ID=<id> the demo stand from its exact images, and release-clean removes release images that no manifest retains. See the release manifest.

See the deployment guide.