-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 2.4 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.9'
services:
# PostgreSQL database (local dev only — use Supabase in production)
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: agentmarket
POSTGRES_PASSWORD: agentmarket_dev
POSTGRES_DB: agentmarket
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentmarket"]
interval: 5s
timeout: 5s
retries: 5
# Backend API
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "4000:4000"
environment:
DATABASE_URL: "postgresql://agentmarket:agentmarket_dev@postgres:5432/agentmarket"
JWT_SECRET: "dev-secret-change-in-production-min-32-chars"
NODE_ENV: "development"
FRONTEND_URL: "http://localhost:3000"
X_LAYER_RPC_URL: "https://rpc.xlayer.tech"
X_LAYER_CHAIN_ID: "196"
PLATFORM_FEE_BPS: "500"
# Fill these from your OKX developer portal:
OKX_API_KEY: "${OKX_API_KEY}"
OKX_SECRET_KEY: "${OKX_SECRET_KEY}"
OKX_PASSPHRASE: "${OKX_PASSPHRASE}"
OKX_PROJECT_ID: "${OKX_PROJECT_ID}"
PLATFORM_PRIVATE_KEY: "${PLATFORM_PRIVATE_KEY}"
PLATFORM_WALLET_ADDRESS: "${PLATFORM_WALLET_ADDRESS}"
USDC_CONTRACT_ADDRESS: "0x74b7F16337b8972027F6196A17a631aC6dE26d22"
AGENT_REGISTRY_ADDRESS: "${AGENT_REGISTRY_ADDRESS}"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend:/app
- /app/node_modules
command: npm run dev
# Frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_URL: "http://localhost:4000/api/v1"
NEXT_PUBLIC_X_LAYER_CHAIN_ID: "196"
NEXT_PUBLIC_X_LAYER_RPC_URL: "https://rpc.xlayer.tech"
NEXT_PUBLIC_X_LAYER_EXPLORER: "https://www.oklink.com/xlayer"
NEXT_PUBLIC_USDC_ADDRESS: "0x74b7F16337b8972027F6196A17a631aC6dE26d22"
NEXT_PUBLIC_REGISTRY_ADDRESS: "${AGENT_REGISTRY_ADDRESS}"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
command: npm run dev
depends_on:
- backend
volumes:
postgres_data: