-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 962 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 962 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
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
app:
build: .
ports:
- "8000:8000"
environment:
- ENVIRONMENT=production
- PORT=8000
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add Redis for caching (if needed later)
# redis:
# image: redis:7-alpine
# restart: unless-stopped
# ports:
# - "6379:6379"
networks:
default:
name: algorithm-visualizer-network
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/app
- /app/node_modules
command: npm start
cpp-builder:
build:
context: ./cpp
dockerfile: Dockerfile
volumes:
- ./cpp:/workspace
working_dir: /workspace
command: >
sh -c "
mkdir -p build &&
cd build &&
cmake .. &&
make -j4
"
volumes:
node_modules: