-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (69 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
72 lines (69 loc) · 2.32 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
postgres:
image: postgres:17-alpine
container_name: udav-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-udav}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASS:-postgres}
command: >
postgres
-c shared_buffers=8GB
-c maintenance_work_mem=2GB
-c work_mem=64MB
-c effective_cache_size=24GB
-c max_wal_size=8GB
-c checkpoint_timeout=15min
-c wal_compression=on
-c synchronous_commit=off
-c max_parallel_maintenance_workers=4
shm_size: 1g
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
udav:
build:
context: .
dockerfile: Dockerfile
container_name: udav-app
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
environment:
DB_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-udav}
DB_USER: ${DB_USER:-postgres}
DB_PASS: ${DB_PASS:-postgres}
DB_SCHEMA: ${DB_SCHEMA:-public}
DB_DIALECT: ${DB_DIALECT:-POSTGRES}
DB_BATCH_SIZE: ${DB_BATCH_SIZE:-5000}
DB_MAX_IDENT: ${DB_MAX_IDENT:-255}
DUUI_IMPORTER: ${DUUI_IMPORTER:-false}
DUUI_IMPORTER_PATH: /app/data/input
DUUI_IMPORTER_FILE_ENDING: ${DUUI_IMPORTER_FILE_ENDING:-.xmi}
DUUI_IMPORTER_WORKERS: ${DUUI_IMPORTER_WORKERS:-4}
DUUI_IMPORTER_CAS_POOL_SIZE: ${DUUI_IMPORTER_CAS_POOL_SIZE:-8}
DUUI_IMPORTER_TYPE_SYSTEM_PATH: /app/data/types
APP_INPUT_DIR: ${APP_INPUT_DIR:-/app/data/input}
PIPELINE_IMPORTER: ${PIPELINE_IMPORTER:-true}
PIPELINE_IMPORTER_FOLDER: ${PIPELINE_IMPORTER_FOLDER:-/app/pipelines}
PIPELINE_IMPORTER_REPLACE_IF_DIFFERENT: ${PIPELINE_IMPORTER_REPLACE_IF_DIFFERENT:-false}
SROUCE_BUILDER: ${SROUCE_BUILDER:-false}
LLM_BASE_URL: ${LLM_BASE_URL:-}
LLM_API_TOKEN: ${LLM_API_TOKEN:-}
JAVA_OPTS: ${JAVA_OPTS:--Xmx10G -Xms512m}
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/actuator/health/liveness || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- ${DUUI_IMPORTER_PATH}:/app/data/input:ro
- ${DUUI_IMPORTER_TYPE_SYSTEM_PATH}:/app/data/types:ro
volumes:
postgres_data: