35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
# =============================================================================
|
|
# ToolsPlatform - Staging Overlay (Option B)
|
|
# =============================================================================
|
|
# Overrides env_file for api-gateway and worker. Adds frontend service.
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.staging.yml --env-file ../.env.staging up -d --build
|
|
# =============================================================================
|
|
|
|
services:
|
|
api-gateway:
|
|
env_file:
|
|
- ../.env.staging
|
|
|
|
worker:
|
|
env_file:
|
|
- ../.env.staging
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Frontend (Next.js) - staging only; dev mode (fast build, no production compile)
|
|
# ---------------------------------------------------------------------------
|
|
frontend:
|
|
build:
|
|
context: ../frontend
|
|
dockerfile: Dockerfile
|
|
container_name: toolsplatform-frontend
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ../.env.staging
|
|
ports:
|
|
- "${FRONTEND_PORT:-3000}:3000"
|
|
environment:
|
|
- PORT=3000
|
|
- HOSTNAME=0.0.0.0
|
|
networks:
|
|
- frontend
|