forked from soterika/aura-vault-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
83 lines (78 loc) · 2.04 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
83 lines (78 loc) · 2.04 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
version: "3.8"
services:
redis:
image: redis:7-alpine
container_name: aura-redis-prod
restart: on-failure:5
ports:
- "6379:6379"
command: >
redis-server
--requirepass ${REDIS_PASSWORD}
--maxmemory ${REDIS_MAXMEMORY:-512mb}
--maxmemory-policy allkeys-lru
--save 60 1000
--appendonly yes
--appendfsync everysec
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- aura-network
backend:
image: ${REGISTRY:-ghcr.io}/${GITHUB_REPOSITORY:-aura-vault-protocol}/backend:${IMAGE_TAG:-latest}
container_name: aura-backend-prod
restart: on-failure:5
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- JWT_SECRET=${JWT_SECRET}
- REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- CACHE_DEFI_PRICE_TTL=30
- CACHE_DEFI_POOL_TTL=60
- 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
start_period: 10s
networks:
- aura-network
frontend:
image: ${REGISTRY:-ghcr.io}/${GITHUB_REPOSITORY:-aura-vault-protocol}/frontend:${IMAGE_TAG:-latest}
container_name: aura-frontend-prod
restart: on-failure:5
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_SOROBAN_RPC_URL=${SOROBAN_RPC_URL}
- NEXT_PUBLIC_NETWORK_PASSPHRASE=${NETWORK_PASSPHRASE}
- NEXT_PUBLIC_API_URL=http://backend:3001
depends_on:
- backend
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- aura-network
volumes:
redis_data:
driver: local
networks:
aura-network:
driver: bridge