-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.24 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
services:
db:
image: postgres:15-alpine
container_name: seeker_db
command: postgres -c synchronous_commit=off -c fsync=off -c shared_buffers=1GB
environment:
POSTGRES_DB: serverseeker
POSTGRES_USER: postgres
POSTGRES_PASSWORD: SuperSuperSecretPassword
ports:
- "5433:5432"
volumes:
- ./server.sql:/docker-entrypoint-initdb.d/server.sql
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d serverseeker"]
interval: 5s
timeout: 5s
retries: 5
webui:
build: ./webui
container_name: seeker_ui
ports:
- "8501:8501"
environment:
- DB_URL=postgresql://postgres:SuperSuperSecretPassword@db:5432/serverseeker
depends_on:
db:
condition: service_healthy
scanner:
build: ./scanner
container_name: seeker_scanner
cap_add:
- NET_ADMIN
network_mode: "host"
environment:
- DB_URL=postgresql://postgres:SuperSuperSecretPassword@localhost:5433/serverseeker
depends_on:
webui:
condition: service_started
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
postgres_data:
driver: local