forked from OWASP/openshield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.19 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
version: '3.8'
services:
db:
image: postgres:15-alpine
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
- /var/run/postgresql
environment:
POSTGRES_DB: openshield
POSTGRES_USER: openshield
POSTGRES_PASSWORD: openshield
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U openshield"]
interval: 10s
timeout: 5s
retries: 5
api:
build: .
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://openshield:openshield@db:5432/openshield
JWT_SECRET: change-me-in-production
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
NVD_API_KEY: ${NVD_API_KEY:-}
depends_on:
db:
condition: service_healthy
frontend:
image: node:20-alpine
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
working_dir: /app
volumes:
- ./frontend:/app
command: sh -c "npm install && npm run dev -- --host"
ports:
- "5173:5173"
environment:
VITE_API_BASE_URL: http://localhost:8000
volumes:
postgres_data: