-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathenv.docker.example
More file actions
75 lines (60 loc) · 2.98 KB
/
env.docker.example
File metadata and controls
75 lines (60 loc) · 2.98 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
# Yeti DEX Docker Deployment Environment Variables
# Copy this file to .env for local Docker development
# For production, set these in your deployment platform
# =============================================================================
# CONTAINER PORTS (Internal Docker configuration)
# =============================================================================
PORT=3000
ORDERBOOK_PORT=3002
# =============================================================================
# FRONTEND ENVIRONMENT VARIABLES (NEXT_PUBLIC_ prefix for client-side access)
# =============================================================================
# Privy Authentication - Get from https://dashboard.privy.io
NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id_here
NEXT_PUBLIC_PRIVY_CLIENT_ID=your_privy_client_id_here
# Yeti Infrastructure URLs
# For local development:
NEXT_PUBLIC_WEBHOOK_SERVER_URL=http://localhost:3001/webhook
NEXT_PUBLIC_ORDERBOOK_SERVER_URL=http://localhost:3002
# For production, update these with your deployed domain:
# NEXT_PUBLIC_WEBHOOK_SERVER_URL=https://your-domain.com/webhook
# NEXT_PUBLIC_ORDERBOOK_SERVER_URL=https://your-domain.com/api/orderbook
# Yeti Smart Contract Addresses on Base Network
NEXT_PUBLIC_WEBHOOK_ORACLE_ADDRESS=0x65bec6934b24390F9195C5bCF8A59fa008964722
NEXT_PUBLIC_WEBHOOK_PREDICATE_ADDRESS=0x3410e3dBef8bc2e5eB7a8e983926B971831177f7
NEXT_PUBLIC_CHAINLINK_CALCULATOR_ADDRESS=0x5220d049f9Ed013d7756DF2e2dF50fe517944948
NEXT_PUBLIC_LIMIT_ORDER_PROTOCOL_ADDRESS=0x111111125421ca6dc452d289314280a0f8842a65
# =============================================================================
# BACKEND ENVIRONMENT VARIABLES (Server-side only)
# =============================================================================
# 1inch API - Get from https://portal.1inch.dev/
1INCH_API_KEY=your_1inch_api_key_here
# Application Environment
NODE_ENV=production
# CORS Configuration
# For local development:
CORS_ORIGIN=http://localhost:3000
# For production, set to your domain:
# CORS_ORIGIN=https://your-domain.com
# Database Configuration
# SQLite database path (persistent in Docker volume)
DATABASE_PATH=/app/orderbook-server/data/orders.db
DB_PATH=/app/orderbook-server/data/orders.db
# Blockchain Configuration
# Use production RPC endpoints (Alchemy, Infura, etc.)
RPC_URL=https://mainnet.base.org
# For testnet: RPC_URL=https://sepolia.base.org
# Smart Contract Addresses (should match frontend values)
WEBHOOK_ORACLE_ADDRESS=0x65bec6934b24390F9195C5bCF8A59fa008964722
WEBHOOK_PREDICATE_ADDRESS=0x3410e3dBef8bc2e5eB7a8e983926B971831177f7
# Alert Monitor Settings
ALERT_MONITOR_ENABLED=true
RECONNECT_DELAY=5000
MAX_RECONNECT_ATTEMPTS=10
POLL_INTERVAL=30000
# =============================================================================
# ORDER WATCHER CONFIGURATION (if running separately)
# =============================================================================
PRIVATE_KEY=your_private_key_here_for_order_execution
ORDERBOOK_URL=http://localhost:3002
WEBHOOK_SERVER_URL=http://localhost:3001