-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1.04 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
services:
webapp:
build:
dockerfile: Dockerfile.webapp
context: .
ports:
- "${WEB_APP_PORT:-8000}:8000"
environment:
POSTGRES_DB: "${WEB_APP_DB:-scanner_app}"
POSTGRES_USER: "${WEB_APP_DB_USER:-scanner_app_user}"
POSTGRES_PASSWORD: "${WEB_APP_DB_PASSWORD}"
POSTGRES_HOST: "database"
volumes:
- scan-samples:/usr/src/app/samples
depends_on:
- database
- scanner
scanner:
build:
dockerfile: Dockerfile.scanner
context: .
expose:
- "${SCANNER_SERVICE_PORT:-4111}"
environment:
SCANNER_SERVICE_PORT: "${SCANNER_SERVICE_PORT:-4111}"
volumes:
- scan-samples:/scanner/samples
database:
image: docker.io/library/postgres:17-alpine
environment:
POSTGRES_DB: "${WEB_APP_DB:-scanner_app}"
POSTGRES_USER: "${WEB_APP_DB_USER:-scanner_app_user}"
POSTGRES_PASSWORD: "${WEB_APP_DB_PASSWORD}"
expose:
- "5432"
volumes:
- database-data:/var/lib/postgresql/data
volumes:
scan-samples:
database-data: