-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 861 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 861 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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: myscanner
POSTGRES_USER: myscanner
POSTGRES_PASSWORD: myscanner
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myscanner -d myscanner"]
interval: 3s
timeout: 3s
retries: 30
web:
build: .
environment:
DATABASE_URL: postgresql+psycopg2://myscanner:myscanner@db:5432/myscanner
SESSION_SECRET: "change-me-in-prod"
LOG_DIR: "/var/MyScanner/log"
ALLOWED_TARGETS: "192.168.0.0/16,10.0.0.0/8"
DEFAULT_NMAP_ARGS: "-sT -sV -Pn -T3 -vv"
TZ: "Asia/Seoul"
volumes:
- /var/MyScanner/log:/var/MyScanner/log
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
volumes:
pgdata: