Files
lincodex/deploy/README.en.md
T

2.4 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 and docker/docker-compose.ml.release.yml are overlays that name the release images lincodex.invalid/<service>:<tag> and never pull them from a registry.
  • 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; see TESTING.md.

make -C deploy release-build, release-smoke, and release-manifest build the release images with pinned base image digests, check them, and write the manifest to deploy/release/<tag>/, which Git ignores; make -C deploy release-manifest-verify compares running containers with the manifest, and make -C deploy release-clean removes the release images. See the release manifest.

See the deployment guide.