-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.17 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
# X402 Demo - Docker Compose
#
# Prerequisites:
# 1. Run Evolve node separately: cargo run -p evolve_testapp
# 2. Or use EVOLVE_RPC_URL to point to an existing node
#
# Usage:
# docker compose up --build
services:
server:
build:
context: ./server
ports:
- "3000:3000"
environment:
- PORT=3000
# Point to host machine's Evolve node (use host.docker.internal on Mac/Windows)
- EVOLVE_RPC_URL=${EVOLVE_RPC_URL:-http://host.docker.internal:8545}
- EVOLVE_NETWORK=evolve:1337
- RP_ID=localhost
- RP_ORIGIN=http://localhost:5173
# Faucet address as treasury — tokens recirculate instead of being burned
- TREASURY_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
# Hardhat #0 key — matches the genesis faucet account 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- FAUCET_PRIVATE_KEY=${FAUCET_PRIVATE_KEY:-0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80}
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
build:
context: ./frontend
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://server:3000
depends_on:
- server