forked from x402-foundation/x402
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 857 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 857 Bytes
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
version: "3.8"
services:
x402-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "4021:4021"
environment:
# Required: Set your Ethereum address
- ADDRESS=${ADDRESS}
# Optional: Coinbase CDP credentials
- CDP_API_KEY_ID=${CDP_API_KEY_ID:-}
- CDP_API_KEY_SECRET=${CDP_API_KEY_SECRET:-}
# Optional: Network
- NETWORK=${NETWORK:-base}
env_file:
- .env
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:4021/premium/content').read()",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"