-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
63 lines (61 loc) · 2.06 KB
/
Copy pathrender.yaml
File metadata and controls
63 lines (61 loc) · 2.06 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
services:
# Main Blockchain Node on DigitalOcean (no Render main node needed)
# This section is for reference only - main blockchain runs on DigitalOcean
# cheeseblockchain.com points to DigitalOcean droplet
# Dedicated Mining Service on Render
- type: web
name: cheese-mining-service
env: node
plan: starter # $7/month for persistent disk
repo: https://github.com/cryptoexdevcheese/cheese-blockchain
branch: master
buildCommand: npm install
startCommand: node mining-service.js
healthCheckPath: /mining-health
envVars:
- key: NODE_ENV
value: production
- key: NODE_ROLE
value: MINING # For API endpoint compatibility
- key: API_KEY
sync: false # Set manually in Render Dashboard (use the new secure key)
- key: INITIAL_PEERS
value: ws://cheeseblockchain.com:8080 # Connect to DigitalOcean main node
- key: PORT
value: 3000
- key: ENABLE_MINING
value: true
- key: MASTER_NODE_URL
value: http://cheeseblockchain.com # Connects to DigitalOcean main blockchain
- key: API_KEY
sync: false # Manual entry for security - use same as DigitalOcean
disk:
name: mining-data
mountPath: /opt/mining-data
sizeGB: 5 # Persistent storage for mining data
# Blockchain Sync Service on Render
- type: worker
name: blockchain-sync-worker
env: node
plan: free
repo: https://github.com/cryptoexdevcheese/cheese-blockchain
branch: master
buildCommand: npm install
startCommand: node sync-service.js
envVars:
- key: NODE_ENV
value: production
- key: SYNC_INTERVAL_MINUTES
value: 5
- key: MASTER_NODE_URL
value: http://cheeseblockchain.com # DigitalOcean main blockchain
- key: DIGITALOCEAN_IP
value: cheeseblockchain.com
- key: OFFICIAL_WEBSITE
value: http://cheeseblockchain.com
- key: FIREBASE_PROJECT_ID
sync: false
- key: FIREBASE_CLIENT_EMAIL
sync: false
- key: FIREBASE_PRIVATE_KEY
sync: false