-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 882 Bytes
/
compose.yaml
File metadata and controls
39 lines (36 loc) · 882 Bytes
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
services:
backend:
image: node:20-alpine
working_dir: /app/backend
command: sh -c "npm install && npm run dev"
environment:
PORT: 3001
CORS_ALLOWED_ORIGINS: http://localhost:5173
STELLAR_NETWORK: testnet
ports:
- '3001:3001'
volumes:
- ./:/app
- backend_node_modules:/app/backend/node_modules
frontend:
image: node:20-alpine
working_dir: /app/frontend
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
environment:
VITE_API_URL: http://backend:3001
VITE_STELLAR_NETWORK: testnet
depends_on:
- backend
ports:
- '5173:5173'
volumes:
- ./:/app
- frontend_node_modules:/app/frontend/node_modules
redis:
image: redis:7-alpine
profiles: ['redis']
ports:
- '6379:6379'
volumes:
backend_node_modules:
frontend_node_modules: