- Change from external bct-network to locally created network - Fix docker-compose.astro.yml network definition - Fix docker-compose.prod.yml network definition - Prevents "undefined networks" error during deployment Networks are now created automatically by Docker Compose instead of requiring pre-existing external network. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
bct-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: bct-astro
|
|
ports:
|
|
- "3000:3000"
|
|
labels:
|
|
- "com.blackcanyon.role=astro-app"
|
|
- "maintainer=tyler@crispygoat.com"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- HOST=0.0.0.0
|
|
- PORT=3000
|
|
# Supabase
|
|
- PUBLIC_SUPABASE_URL=${PUBLIC_SUPABASE_URL}
|
|
- PUBLIC_SUPABASE_ANON_KEY=${PUBLIC_SUPABASE_ANON_KEY}
|
|
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
|
|
# Stripe
|
|
- STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
|
|
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY}
|
|
- STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET}
|
|
# Email
|
|
- RESEND_API_KEY=${RESEND_API_KEY}
|
|
# Monitoring
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
|
- SENTRY_RELEASE=${SENTRY_RELEASE}
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "const http=require('http');const options={hostname:'localhost',port:3000,path:'/api/health',timeout:2000};const req=http.request(options,(res)=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>{process.exit(1)});req.end();"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 40s
|
|
networks:
|
|
- bct-network
|
|
|
|
networks:
|
|
bct-network:
|
|
driver: bridge |