-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.28 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
services:
sast-service:
build:
context: ./sast_service
dockerfile: Dockerfile
container_name: snapshot-sast-service
ports:
- "5002:5002"
environment:
- PORT=5002
volumes:
# Mount volumes for persistent storage of semgrep rules and temp files
- sast-rules:/app/semgrep-rules
- sast-temp:/app/temp_sast
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:5002/health || exit 1"]
interval: 5s
timeout: 5s
retries: 2
networks:
- snapshot_net
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: snapshot-backend
ports:
- "5001:5000"
- "8081:8081"
environment:
- NODE_ENV=production
- PORT=5000
- SAST_SERVICE_URL=http://sast-service:5002
env_file:
- .env
depends_on:
sast-service:
condition: service_healthy
networks:
- snapshot_net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: snapshot-frontend
ports:
# Serve the frontend via Nginx on host port 3000
- "3000:80"
depends_on:
- backend
networks:
- snapshot_net
networks:
snapshot_net:
driver: bridge
volumes:
sast-rules:
sast-temp: