forked from soterika/aura-vault-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (88 loc) · 2.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (88 loc) · 2.8 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.8"
services:
# ── Redis ───────────────────────────────────────────────────────
redis:
image: redis:7-alpine
container_name: aura-redis
restart: unless-stopped
ports:
- "6379:6379"
command: >
redis-server
--requirepass ${REDIS_PASSWORD:-}
--maxmemory ${REDIS_MAXMEMORY:-256mb}
--maxmemory-policy allkeys-lru
--save 60 1
--appendonly yes
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
networks:
- aura-network
# ── Backend ─────────────────────────────────────────────────────
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: aura-backend
restart: unless-stopped
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- JWT_SECRET=${JWT_SECRET:-aura-vault-dev-secret}
- REDIS_URL=redis://:${REDIS_PASSWORD:-}@redis:6379
- CACHE_DEFI_PRICE_TTL=${CACHE_DEFI_PRICE_TTL:-30}
- CACHE_DEFI_POOL_TTL=${CACHE_DEFI_POOL_TTL:-60}
- CACHE_API_TTL=${CACHE_API_TTL:-60}
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/health"]
interval: 30s
timeout: 5s
retries: 3
networks:
- aura-network
# ── Frontend ────────────────────────────────────────────────────
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: aura-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- NEXT_PUBLIC_SOROBAN_RPC_URL=${SOROBAN_RPC_URL:-https://soroban-testnet.stellar.org}
- NEXT_PUBLIC_NETWORK_PASSPHRASE=${NETWORK_PASSPHRASE:-Test SDF Network ; September 2015}
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
interval: 30s
timeout: 5s
retries: 3
networks:
- aura-network
# ── Contract Builder ────────────────────────────────────────────
contract-builder:
build:
context: ./aura-vault
dockerfile: Dockerfile
container_name: aura-contract-builder
volumes:
- contract_artifacts:/app
networks:
- aura-network
volumes:
contract_artifacts:
redis_data:
networks:
aura-network:
driver: bridge