-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
26 lines (24 loc) · 932 Bytes
/
docker-compose.prod.yml
File metadata and controls
26 lines (24 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ============================================
# Protocol Guide - Production Override (All-in-One EMS App)
# API serves both tRPC and static web from a single container.
# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
# ============================================
services:
api:
build:
context: .
dockerfile: Dockerfile.fullstack
target: production
env_file:
- .env.docker
environment:
- NODE_ENV=production
- PORT=3001
# Default to bundled postgres/redis; override in .env.docker for Supabase/Upstash
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/protocol_guide}
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
volumes: [] # No source mounts — image contains everything
# Disable web service — API serves static files directly in fullstack mode
web:
profiles:
- disabled