-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.36 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
services:
db:
image: postgres:15-alpine
container_name: osff_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: osff_vulns
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: osff_backend
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:postgres@db:5432/osff_vulns
SECRET_KEY: ${SECRET_KEY:-please-change-this-in-production-use-openssl-rand-hex-32}
DEBUG: ${DEBUG:-false}
SMTP_HOST: ${SMTP_HOST:-smtp.example.com}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
SMTP_FROM_EMAIL: ${SMTP_FROM_EMAIL:-noreply@osff.org}
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:3000}
ports:
- "8000:8000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: osff_frontend
depends_on:
- backend
ports:
- "3000:80"
volumes:
postgres_data:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/data/postgres