refactor: remove growth/billing/tracker from common-plat docker-compose, update Traefik labels
This commit is contained in:
parent
1ba8d6950a
commit
ea54437c1c
@ -59,55 +59,9 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# ── Growth Service (Fastify + TypeScript) ───────────────────
|
# ── Platform Service (Fastify + TypeScript) ─────────────
|
||||||
growth-service:
|
# Consolidated: auth, audit, notifications, flags, blob, invitations, referrals, promos,
|
||||||
build:
|
# subscriptions, usage, plans, licenses, stripe, items, comments, votes, public
|
||||||
context: .
|
|
||||||
dockerfile: services/growth-service/Dockerfile
|
|
||||||
ports:
|
|
||||||
- '4001:4001'
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- PORT=4001
|
|
||||||
# Local/dev convenience: ensure Cosmos DB + containers exist.
|
|
||||||
- COSMOS_AUTO_INIT=true
|
|
||||||
labels:
|
|
||||||
- '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'
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4001/health']
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
|
|
||||||
# ── Billing Service (Fastify + TypeScript) ──────────────────
|
|
||||||
billing-service:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: services/billing-service/Dockerfile
|
|
||||||
ports:
|
|
||||||
- '4002:4002'
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- PORT=4002
|
|
||||||
# Local/dev convenience: ensure Cosmos DB + containers exist.
|
|
||||||
- COSMOS_AUTO_INIT=true
|
|
||||||
labels:
|
|
||||||
- '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'
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4002/health']
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
|
|
||||||
# ── Platform Service (Fastify + TypeScript) ─────────────────
|
|
||||||
platform-service:
|
platform-service:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@ -122,7 +76,7 @@ services:
|
|||||||
- COSMOS_AUTO_INIT=true
|
- COSMOS_AUTO_INIT=true
|
||||||
labels:
|
labels:
|
||||||
- 'traefik.enable=true'
|
- '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.routers.platform.rule=PathPrefix(`/api`) || PathPrefix(`/public`) || PathPrefix(`/health`)'
|
||||||
- 'traefik.http.services.platform.loadbalancer.server.port=4003'
|
- 'traefik.http.services.platform.loadbalancer.server.port=4003'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -131,30 +85,6 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
# ── Tracker Service (Fastify + TypeScript) ──────────────────
|
|
||||||
tracker-service:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: services/tracker-service/Dockerfile
|
|
||||||
ports:
|
|
||||||
- '4004:4004'
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- PORT=4004
|
|
||||||
# Local/dev convenience: ensure Cosmos DB + containers exist.
|
|
||||||
- COSMOS_AUTO_INIT=true
|
|
||||||
labels:
|
|
||||||
- 'traefik.enable=true'
|
|
||||||
- 'traefik.http.routers.tracker.rule=PathPrefix(`/api/items`) || PathPrefix(`/api/tracker`) || PathPrefix(`/public`)'
|
|
||||||
- 'traefik.http.services.tracker.loadbalancer.server.port=4004'
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:4004/health']
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
|
|
||||||
# ── Extraction Service (Fastify + TypeScript + Python sidecar) ──
|
# ── Extraction Service (Fastify + TypeScript + Python sidecar) ──
|
||||||
extraction-service:
|
extraction-service:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user