docs: simplify project guides and add GPLv3

This commit is contained in:
TakuyaYagam1 committed 2026-10-11 22:25:10 +03:00
1 parent e4de6d0f9a
commit 76d32bb79f
59 files changed
+2267 -8843

No files matched your search

+21 -14
View File
@@ -2,21 +2,28 @@
[Русский](README.md) | English
Configuration for running the application with Docker Compose and Nginx.
Docker Compose, Nginx, and startup tools. Dockerfiles live in service directories; the shared `.env.example` is at the repository root.
- `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](../docs/en/DEPLOY.md#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](../docs/en/DEPLOY.md#edge-proxy-https-and-tunnel).
- `labs/` holds the LXD layout of the app host for the isolated runner and the labs (`lxd-preseed.yaml`, `acls.sh`) and `runner-vm.sh`, which builds, updates, and checks the production runner VM: `make -C deploy runner-vm-up`, `runner-vm-a16`, and `runner-vm-check` on the app host, and `check-runner-vm` anywhere; see [the runner VM](../docs/en/DEPLOY.md#production-the-runner-vm).
- `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](../docs/en/DEPLOY.md#public-perimeter-and-client-address).
| Directory | Purpose |
| --- | --- |
| `docker/` | Core stack and separate Compose files for ML, monitoring, demo, E2E, and the dev runner |
| `nginx/` | SPA serving and API proxy to Go |
| `edge/` | Public HTTPS proxy and private tunnel templates |
| `labs/` | LXD networks, code runner VM, and labd systemd configuration |
| `ml-gpu/` | ML on a GPU host through systemd |
| `demo/`, `scripts/` | Synthetic data, checks, and release tooling |
| `release/` | Local release manifests, excluded from Git |
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](../docs/en/TESTING.md#browser-e2e-suite) for details.
From the repository root:
`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](../docs/en/DEPLOY.md#release-manifest).
```sh
make -C deploy help
make -C deploy config
make -C deploy up
```
See the [deployment guide](../docs/en/DEPLOY.md).
`config` validates examples; `up` requires a prepared `.env` and starts core only. ML and monitoring start separately; monitoring and local ML need the existing core network. `down` preserves volumes.
For a demonstration: `make -C deploy demo-seed DEMO_MODE=isolated`. For checks: `make -C deploy check`, `smoke`, or `test-e2e`. The latter two create and remove their own stands.
Secrets, HTTPS, runner, and release instructions: [DEPLOYMENT.md](../docs/en/DEPLOYMENT.md). Test scenarios: [TESTING.md](../docs/en/TESTING.md).