fix traffic observability, tg alerting robustness and prod compose ports
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-07 20:38:19 +08:00
parent 3b665e4cbe
commit 663ad4d3a2
6 changed files with 436 additions and 34 deletions

View File

@@ -1,6 +1,20 @@
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: agent_bounty_redis
restart: always
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
networks:
- agent-bounty-network
db:
image: postgres:14-alpine
container_name: agent_bounty_db
@@ -10,7 +24,7 @@ services:
POSTGRES_PASSWORD: agent_password_secure
POSTGRES_DB: agent_bounty
ports:
- "5432:5432"
- "5433:5432"
volumes:
- agent_bounty_pgdata:/var/lib/postgresql/data
networks:
@@ -28,11 +42,12 @@ services:
container_name: agent_bounty_web
restart: always
ports:
- "3000:3000"
- "3001:3000"
environment:
# Use the docker internal network to connect to postgres
- DATABASE_URL=postgresql://agent:agent_password_secure@db:5432/agent_bounty?schema=public
- NODE_ENV=production
- REDIS_URL=redis://redis:6379
- API_KEY=${API_KEY:-super-secret-mcp-key}
- E2B_API_KEY=${E2B_API_KEY:-""}
- AUTO_WHITELIST_EXTERNAL_AGENTS=${AUTO_WHITELIST_EXTERNAL_AGENTS:-true}
@@ -43,6 +58,8 @@ services:
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
# We use a command override to run database push before starting next.js
command: >
sh -c "npx prisma@6.4.1 db push --schema=apps/web/prisma/schema.prisma --skip-generate && node apps/web/server.js"