forked from Feyisara2108/stellargive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 1.11 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
version: "3.9"
services:
stellar:
image: stellar/quickstart:testing
command: --standalone --enable-soroban --protocol-version 21
ports:
- "${STELLAR_PORT_RPC:-8000}:8000"
- "${STELLAR_PORT_FRIENDBOT:-8001}:8001"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
interval: 10s
timeout: 5s
retries: 15
start_period: 10s
frontend:
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev"
ports:
- "${FRONTEND_PORT:-3000}:3000"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
environment:
- NODE_ENV=${NODE_ENV:-development}
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-true}
depends_on:
stellar:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
volumes:
frontend_node_modules: