chore: initial commit with Phase 0 setup
This commit is contained in:
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
container_name: agent_bounty_db
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: agent
|
||||
POSTGRES_PASSWORD: agent_password_secure
|
||||
POSTGRES_DB: agent_bounty
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- agent_bounty_pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U agent"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: agent_bounty_web
|
||||
restart: always
|
||||
ports:
|
||||
- "3000: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
|
||||
- API_KEY=${API_KEY:-"super-secret-mcp-key"}
|
||||
- E2B_API_KEY=${E2B_API_KEY:-""}
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
# We use a command override to run database push before starting next.js
|
||||
command: >
|
||||
sh -c "npx prisma db push --schema=apps/web/prisma/schema.prisma && node apps/web/server.js"
|
||||
|
||||
volumes:
|
||||
agent_bounty_pgdata:
|
||||
Reference in New Issue
Block a user