forked from Stellar-Prex/Oryn-Finance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.4 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
services:
mongodb:
image: mongo:7
container_name: oryn-mongodb
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- oryn-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: oryn-backend
restart: unless-stopped
depends_on:
- mongodb
environment:
NODE_ENV: production
PORT: 5001
MONGODB_URI: mongodb://mongodb:27017/oryn-finance
FRONTEND_URL: http://localhost:8080
STELLAR_NETWORK: testnet
STELLAR_HORIZON_URL: https://horizon-testnet.stellar.org
RATE_LIMIT_WINDOW_MS: 900000
RATE_LIMIT_MAX_REQUESTS: 100
ports:
- "5001:5001"
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:5001/api/health/live', (res) => process.exit(res.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
networks:
- oryn-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_URL: /api
container_name: oryn-frontend
restart: unless-stopped
depends_on:
backend:
condition: service_started
ports:
- "8080:80"
networks:
- oryn-network
volumes:
mongodb_data:
networks:
oryn-network:
driver: bridge