3.6 KiB
Deployment
Русский | English
Configuration for running the application with Docker Compose and Nginx.
docker/docker-compose.ymlstarts the core stack with PostgreSQL, Redis, SeaweedFS, and Kafka.docker/docker-compose.ml.ymlanddocker/docker-compose.monitoring.ymlrun ML and monitoring as separate projects.nginx/configures frontend serving and API proxying.docker/docker-compose.e2e.ymlis 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, anddocker/docker-compose.ml.release.ymlare overlays that name the release imageslincodex.invalid/<service>:<tag>(the demo seed image included) and never pull them from a registry.docker/docker-compose.demo.ymlanddemo/belong to the isolated demo stand with synthetic data:make -C deploy demo-seed DEMO_MODE=isolatedstarts and seeds it,demo-resetrebuilds it only when it holds no ordinary account, anddemo-downstops it; see the isolated demo stand.scripts/contains the isolated stack smoke check, the browser E2E runner, andrelease_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-configrenders the nginx configuration and runsnginx -tin a container; see the edge proxy runbook.labs/holds the LXD layout of the app host for the isolated runner and the labs (lxd-preseed.yaml,acls.sh) andrunner-vm.sh, which builds, updates, and checks the production runner VM:make -C deploy runner-vm-up,runner-vm-a16, andrunner-vm-checkon the app host, andcheck-runner-vmanywhere; see the runner VM.make -C deploy check-perimeterchecks the published ports, denied paths, limits, and the trusted peer of Nginx from the files;make -C deploy perimeter-testchecks 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.