Repository navigation
[M0.5] Local dev environment - #11
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
[M0.5] Local dev environment. Closes #5
What changed
deploy/dev/compose.yml: PostgreSQL 17, VictoriaLogs v1.53.0, VictoriaMetrics v1.155.0 and CNCF Distribution 3.1.2, every image pinned to a digest, every port bound to127.0.0.1only, data in named volumes, 30-day retention for logs and metrics, PostgreSQL health check so--waitreturns when the database accepts connections.pnpm devstarts the Docker services (pnpm dev:infra) thenapiandwebwith hot reload through Nx.pnpm dev:infra:downstops the services,pnpm dev:infra:resetalso deletes the volumes./apito the control plane (apps/web/proxy.conf.json), so the UI uses same-origin URLs from day one. Page title set to Shipkeep.Why
Acceptance criterion of M0.5: a new contributor runs the stack with two commands documented in the README.
How it was tested
pnpm dev:infrarun happens in CI once the integration tests need the stack (M1.2) and on the maintainer's machine; please report any issue.nx serve apiandnx serve webwere started locally:GET http://localhost:3000/api/v1/healthreturns{"status":"ok"}, the UI serves on 4200, andGET http://localhost:4200/api/v1/healthreaches the API through the proxy.pnpm nx run-many -t lint typecheck test build: 25 tasks succeeded.Security considerations
Development-only stack. Ports are loopback-bound so the database, the registry and the observability stores are not exposed on the LAN. Credentials are the documented fake dev values and match
.env.example. Image digests are pinned.Checklist
docs/PLAN.mdare met and the task is tickedbuf lintpass