Fix compose up on clean Docker; update checklist

This commit is contained in:
Saravana Achu Mac 2026-02-14 18:53:55 -08:00
parent 607fcbf3d7
commit bbf91da48a
2 changed files with 21 additions and 49 deletions

View File

@ -10,7 +10,8 @@ services:
command: -config.file=/etc/loki/local-config.yaml
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:3100/ready']
# BusyBox wget (used in Alpine images) doesn't support --no-verbose/--tries
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:3100/ready']
interval: 15s
timeout: 5s
retries: 3
@ -33,8 +34,7 @@ services:
condition: service_started
restart: unless-stopped
healthcheck:
test:
['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:3000/api/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:3000/api/health']
interval: 15s
timeout: 5s
retries: 3
@ -57,11 +57,6 @@ services:
depends_on:
loki:
condition: service_started
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
# ── Growth Service (Fastify + TypeScript) ───────────────────
@ -79,14 +74,9 @@ services:
- 'traefik.enable=true'
- 'traefik.http.routers.growth.rule=PathPrefix(`/api/invitations`) || PathPrefix(`/api/referrals`) || PathPrefix(`/api/promos`)'
- 'traefik.http.services.growth.loadbalancer.server.port=4001'
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4001/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4001/health']
interval: 30s
timeout: 10s
retries: 3
@ -106,14 +96,9 @@ services:
- 'traefik.enable=true'
- 'traefik.http.routers.billing.rule=PathPrefix(`/api/subscriptions`) || PathPrefix(`/api/payments`) || PathPrefix(`/api/usage`) || PathPrefix(`/api/plans`) || PathPrefix(`/api/licenses`) || PathPrefix(`/api/stripe`)'
- 'traefik.http.services.billing.loadbalancer.server.port=4002'
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4002/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4002/health']
interval: 30s
timeout: 10s
retries: 3
@ -133,14 +118,9 @@ services:
- 'traefik.enable=true'
- 'traefik.http.routers.platform.rule=PathPrefix(`/api/auth`) || PathPrefix(`/api/audit`) || PathPrefix(`/api/notifications`) || PathPrefix(`/api/flags`) || PathPrefix(`/api/ratelimit`) || PathPrefix(`/api/blob`)'
- 'traefik.http.services.platform.loadbalancer.server.port=4003'
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4003/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4003/health']
interval: 30s
timeout: 10s
retries: 3
@ -160,14 +140,9 @@ services:
- 'traefik.enable=true'
- 'traefik.http.routers.tracker.rule=PathPrefix(`/api/items`) || PathPrefix(`/api/tracker`) || PathPrefix(`/public`)'
- 'traefik.http.services.tracker.loadbalancer.server.port=4004'
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4004/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4004/health']
interval: 30s
timeout: 10s
retries: 3
@ -188,14 +163,9 @@ services:
- 'traefik.enable=true'
- 'traefik.http.routers.extraction.rule=PathPrefix(`/api/extract`) || PathPrefix(`/api/tasks`)'
- 'traefik.http.services.extraction.loadbalancer.server.port=4005'
logging:
driver: loki
options:
loki-url: 'http://host.docker.internal:3100/loki/api/v1/push'
loki-retries: '3'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4005/health']
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4005/health']
interval: 30s
timeout: 10s
retries: 3

View File

@ -1,6 +1,6 @@
# All Other Workstreams — Remaining Items (Non-Mobile)
> Last updated: 2026-02-14
> Last updated: 2026-02-15
> Sources:
>
> - `learning_ai_common_plat/docs/ROADMAP.md`
@ -15,6 +15,8 @@
- 2026-02-14: Added `@bytelyst/blob` shared package (Blob client helpers + SAS URL generation)
- 2026-02-14: Added `@bytelyst/monitoring` shared package (health-check aggregation)
- 2026-02-14: Attempted `docker compose build` (fails: disk is full; free space before retrying)
- 2026-02-15: `docker compose build` passes (all service images)
- 2026-02-15: `docker compose up -d` passes (removed Loki logging-driver requirement; fixed healthchecks for Alpine/IPv6)
## Prereqs (Local)
@ -30,19 +32,19 @@
## Home Laptop Priority (No Proxy Issues)
- [ ] Common platform: `cd learning_ai_common_plat && docker compose build` (maps to **5.16**)
- [ ] Common platform: `cd learning_ai_common_plat && docker compose up -d` (maps to **5.17** / **6.12**)
- [x] Common platform: `cd learning_ai_common_plat && docker compose build` (maps to **5.16**)
- [x] Common platform: `cd learning_ai_common_plat && docker compose up -d` (maps to **5.17** / **6.12**)
- [ ] E2E/manual login tests across dashboards (admin/user/tracker) once stack is up
## Common Platform Extraction (`learning_ai_common_plat`) — Remaining Tasks
Docker verification
- [ ] **1A.23** Verify Docker builds for all 4 services still pass
- [ ] **1B.33** Verify Docker builds pass
- [ ] **2A.25** Verify Docker builds
- [ ] **2C.23** Verify Docker builds for all 4 services
- [ ] **2C.24** Verify `docker-compose up` starts all services correctly
- [x] **1A.23** Verify Docker builds for all 4 services still pass
- [x] **1B.33** Verify Docker builds pass
- [x] **2A.25** Verify Docker builds
- [x] **2C.23** Verify Docker builds for all 4 services
- [x] **2C.24** Verify `docker-compose up` starts all services correctly
E2E/manual auth flow checks
@ -56,13 +58,13 @@ Design token follow-ups
CI + docker compose (home network)
- [ ] **5.16** Run `docker compose build` (blocked: disk is full on this machine; prior blocker was corporate proxy SSL)
- [ ] **5.17** Run `docker compose up -d` (requires 5.16)
- [x] **5.16** Run `docker compose build` (was blocked by disk space / proxy on other machines)
- [x] **5.17** Run `docker compose up -d` (requires 5.16)
Full-stack verification + E2E scenarios
- [ ] **6.9** Build MindLyst KMP (passes on home network)
- [ ] **6.12** Docker compose full stack: `docker compose up -d` -> all healthy
- [x] **6.12** Docker compose full stack: `docker compose up -d` -> all healthy
- [ ] **6.13** Test: Admin login -> create user -> view user list
- [ ] **6.14** Test: User login -> view profile -> update settings
- [ ] **6.15** Test: Tracker login -> create item -> add comment -> vote